-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed as not planned
Labels
netboxpending closureRequires immediate attention to avoid being closed for inactivityRequires immediate attention to avoid being closed for inactivityseverity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: needs ownerThis issue is tentatively accepted pending a volunteer committed to its implementationThis issue is tentatively accepted pending a volunteer committed to its implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Deployment Type
Self-hosted
NetBox Version
v4.3.2
Python Version
3.12
Steps to Reproduce
- For each of these endpoints:
- api/ipam/services
- api/ipam/vlan-groups
- api/virtualization/clusters
- Create a few objects of each type and enable e.g. the Django debug toolbar to count the number of queries
- Note the number of queries
- Add a few more objects
Expected Behavior
- Number of DB queries stays roughly the same (Like e.g. for the devices endpoint)
Observed Behavior
- Number of queries increases by roughly the same number as the number of objects added (I guess some prefetch_related/select_related are missing)
Service: One query per parent
VLAN-Group: One query per scope
Cluster: One query per site
Metadata
Metadata
Assignees
Labels
netboxpending closureRequires immediate attention to avoid being closed for inactivityRequires immediate attention to avoid being closed for inactivityseverity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: needs ownerThis issue is tentatively accepted pending a volunteer committed to its implementationThis issue is tentatively accepted pending a volunteer committed to its implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application