Skip to content

Cache component template counts on device types #13269

@jeremystretch

Description

@jeremystretch

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

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions