-
Notifications
You must be signed in to change notification settings - Fork 0
Description
The introduction of Automatic interface descriptions gave cosmo a measurable performance hit. In WOBCOMs netbox, we are waiting for the result of cosmo to allow the user to close the change. It currently takes about 15 seconds to get a full run done, which could be done in 5 seconds, if we omit all the data related to link_peer, connected_endpoints in the Device query and use the Dummy Tobago insert.
There are two ways of implementing this feature:
- Extract link_peer and connected_endpoints data from DeviceQuery into a seperate query, for example LinkInformationQuery, and use a dummy for validate mode.
- Add a switch to DeviceQuery to remove the not wanted fields from the GraphQL query.
I would favor Option 1, there is already infra around this.
Validate mode would then not insert TobagoQuery and LinkInformationQuery into the data fetch queue but some dummies to insert null values. Those null values then need to be handled within the code.
This should get us back to around 5 seconds of fetch time.