Skip to content

Conversation

@dalrrard
Copy link
Contributor

I refactored all of the import functions to use bulk POSTs and list GETs instead of individual ones. In my testing, it took around 3.5 hours to import all device types before the change and about 20 minutes to import all device types after these modifications. I couldn't find any style guidelines, so let me know if anything cosmetic or substantive needs to change. Thanks!

@ndom91
Copy link
Contributor

ndom91 commented Aug 25, 2021

Damn has the device library gotten that big?! 😂

@dalrrard
Copy link
Contributor Author

Either that or I have terrible internet! I imagine you could have it cache each type of import for every device in some lists and do giant bulk POSTs for each import type at the very end of the run instead of the smaller ones I'm doing for each device individually to save some more time, but I haven't tested it out.

@minitriga minitriga merged commit dcb5caf into netbox-community:master Sep 7, 2021
@dalrrard dalrrard deleted the speed-up-import branch September 14, 2021 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants