Perform an application-wide audit for missing indexes #11800

Closed
opened 2025-12-29 21:50:00 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Oct 31, 2025).

Originally assigned to: @bctiemann on GitHub.

Proposed Changes

Perform an automated audit to ensure all models have appropriate PostgreSQL indexes defined. These include indexes for

  • Foreign keys (created automatically)
  • Generic foreign keys
  • varchar_pattern_ops on applicable fields
  • Indexes for fields associated with common filters

Once completed, we should also implement a set of tests to check for missing indexes.

Justification

This audit will identify and seize opportunities for improving query performance.

Originally created by @jeremystretch on GitHub (Oct 31, 2025). Originally assigned to: @bctiemann on GitHub. ### Proposed Changes Perform an automated audit to ensure all models have appropriate PostgreSQL indexes defined. These include indexes for - Foreign keys (created automatically) - Generic foreign keys - `varchar_pattern_ops` on applicable fields - Indexes for fields associated with common filters Once completed, we should also implement a set of tests to check for missing indexes. ### Justification This audit will identify and seize opportunities for improving query performance.
adam added the type: housekeepingnetboxstatus: backlog labels 2025-12-29 21:50:00 +01:00
adam closed this issue 2025-12-29 21:50:00 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11800