Skip to content

Conversation

@atownson
Copy link
Contributor

Closes: #18403

Defer the retrieval of the data field for certain Job queries (queries that do not need access to the data). This improves responsiveness of the forms and reduces memory consumption.

The housekeeping queries were not changed because both use either the count() aggregate or the delete() function. Adding the defer() function would not alter the SQL statement.

@jeremystretch jeremystretch requested review from a team and bctiemann and removed request for a team February 24, 2025 16:45
@bctiemann bctiemann merged commit 4a4596d into netbox-community:main Feb 25, 2025
3 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2025
@atownson atownson deleted the issue_18403 branch March 31, 2025 13:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve performance of Job queries

2 participants