Skip to content

Displaying a page of a Prefix takes 20 min #13471

Answered by candlerb
reduzent asked this question in Help Wanted!
Discussion options

You must be logged in to vote

I think we need to look at what SQL queries are being issued to the database. It's possible that while counting the child objects, Netbox is either querying all objects, or generating a separate query per object.

Doing this is very easy. Set DEBUG=True in configuration.py, then restart. This enables a debug tool button on the top-right corner, which you can click to expand.

For example, on my system (3.5.7), if I go to /ipam/prefixes/17/ which is an outer container prefix, I see tabs for Child Prefixes (11), Child Ranges (6), IP Addresses (73). The Debug panel tells me "29 queries in 71.42ms"

Debug mode does drastically slow down the system, so your 20 minutes could become longer again - …

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by reduzent
Comment options

You must be logged in to vote
1 reply
@candlerb
Comment options

Comment options

You must be logged in to vote
1 reply
@candlerb
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants