Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize SeedDB prefix listing queries #2156

Closed
lunkwill42 opened this issue May 5, 2020 · 1 comment · Fixed by #2384
Closed

Optimize SeedDB prefix listing queries #2156

lunkwill42 opened this issue May 5, 2020 · 1 comment · Fixed by #2384
Assignees
Labels
good first issue Needs no networking experience and is assumedly small
Milestone

Comments

@lunkwill42
Copy link
Member

It seems the SeedDB prefix listing page lacks proper usage of Django ORM's select_related() and associated calls.

Observing noticably slow page loads on our own internal data sets at Uninett. With over 1500 registered prefixes, debug mode shows more than 4500 executed SQL queries, suggesting that lookups into a couple more tables happen for each Prefix result object.

@lunkwill42 lunkwill42 added the good first issue Needs no networking experience and is assumedly small label Dec 14, 2021
@lunkwill42
Copy link
Member Author

This could be a good first issue. It requires a bit of Django and SQL knowledge, and you will need to learn a little bit about the NAV data model and the structure of the SeedDB tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Needs no networking experience and is assumedly small
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants