-
Notifications
You must be signed in to change notification settings - Fork 32
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
Small improvements to import performance #131
Conversation
…ings to make that useful
small tweaks, but it redunce time to import the listings on my machine from 40 minutes to 23
Just got home from work, running a comparison check of |
Live should not be true on this one. |
36 minutes to completion with this branch, 11.0.3 is still at 88% on the main listings file |
This branch:
listings: ~35 minutes Total: ~37 minutes
listings: ~46 minutes Total: ~49 minutes Total time savings: 12 minutes |
I'm going to push a couple changes, check I didn't break anything, and then do the merge. |
Have all the methods external to the class have matching naming convention
Don't use self.execute() or self.commit() in some cases and db.execute() or db.commit() in others, use db.* in all cases.
Need to include `self.dataPath` or it will always return False, which is not what we want.
Nice! | remove unused methods mmmmm - I love it when you talk dirty |
There's a bunch of linting/fixing first, which helped me spot some actual problems. After that there's some tidy-up of eddbplugin that made it easier for me to reason about, and enabled me to find a balance between building big lists in memory to attack the db with vs making better use of the dbs own inevitable cache anyway.
this reduces import time from 40 minutes to 23 minutes on my windows pc.
please run this branch on other hardware yourself before merging.