Skip to content

Showing prefix of the site that has many prefixes is slow #7365

@shuichiro-makigaki

Description

@shuichiro-makigaki

NetBox version

v3.0.3

Python version

3.9

Steps to Reproduce

  1. Add a site and some prefixes under the site. (The site has 48 prefixes in our environment, and some of them have some child prefixes. One of them has over 30 child prefixes.)
  2. Click site from the left menu, select the added site, click prefix on the right corner of the site page.

Expected Behavior

The prefix page of the site shows within seconds.

Observed Behavior

It took around 40 seconds to show 50 prefixes on a page.

Calculation of prefix utilization seems to consume a lot of execution time: after hiding the utilization bar (%) by "Configure Table," it took 1 second to show.
I'm preparing a Pull Request to optimize the utilization calculation.

Metadata

Metadata

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions