Cache component template counts on device types #8370

Closed
opened 2025-12-29 20:35:53 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Jul 25, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.5.6

Feature type

Change to existing functionality

Proposed functionality

Establish cached counters on the DeviceType model for each of the component template models. (This is essentially replicating what was done for devices under #6347.)

Use case

Similar to #6347, we can optimize query performance by automatically caching the count of each type of assigned component template per device type.

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Jul 25, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.5.6 ### Feature type Change to existing functionality ### Proposed functionality Establish cached counters on the DeviceType model for each of the component template models. (This is essentially replicating what was done for devices under #6347.) ### Use case Similar to #6347, we can optimize query performance by automatically caching the count of each type of assigned component template per device type. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:35:53 +01:00
adam closed this issue 2025-12-29 20:35:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8370