-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Bulk importing devices extremely slow #19321
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
Comments
Hey @martijnremmen , thanks for the bug report. While I'm able to reproduce some slowness using your STR (or at least how I interpreted them), I'm not able to recreate the extreme slowness and SQL query count that your screenshot shows. On my local, with the development server and Postgres (v14.17 via Homebrew) running side-by-side, this took me ~25 seconds and only 20 queries. This is the CSV I used to do the import of the 10 devices:
Can you provide any more details that would help us reproduce this? |
You are inspecting the redirect. You have to go to history in the debug toolbar and switch to the post request. |
FWIW, batch delete on the 10 created devices has the same issue--this time with ~16,000 queries. |
Thanks for investigating the issue! also note when removing the interfaces from the device type, importing gets a lot faster with 737 queries (still alot) |
Deployment Type
Self-hosted
NetBox Version
v4.2.6
Python Version
3.12
Steps to Reproduce
Notes:
Expected Behavior
the import completing within seconds
Observed Behavior
the import completes in more than 1 minute. Performs more than 11K SQL queries. And gives no progress indicator. for just 10 devices
The text was updated successfully, but these errors were encountered: