Avoid querying applicable webhooks for every object #4956

Closed
opened 2025-12-29 19:22:37 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Jun 1, 2021).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Optimize the webhooks processing logic to avoid querying for applicable webhooks for each object being processed in the request.

Justification

By querying once and caching locally the applicable webhooks, we can avoid a high number of redundant database queries e.g. during bulk import.

Originally created by @jeremystretch on GitHub (Jun 1, 2021). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Optimize the webhooks processing logic to avoid querying for applicable webhooks for each object being processed in the request. ### Justification By querying once and caching locally the applicable webhooks, we can avoid a high number of redundant database queries e.g. during bulk import.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 19:22:37 +01:00
adam closed this issue 2025-12-29 19:22:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4956