Adding ISBN custom column significantly affects performance
Bug #757445 reported by
kiwidude
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I added an ISBN custom column using the "built-in one click" defaults on Preferences->Adding columns on my test library which has 40,000 books.
It takes the time for switching to that library from 15 seconds to just on a minute (4x slower).
Just wondered if there was any optimisation that could be done to speed that up, I've dropped the column again now.
Related branches
Changed in calibre: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Using my 20,000 book test library and measuring startup time:
- No custom columns: 6.2 seconds
- An ISBN custom column: 6.2 seconds.
No difference.
Using the same library and measuring time to change library:
- No custom columns: 12 seconds
- An ISBN column: 12 seconds
Again, no difference. However, the doubling of time to change libraries compared to startup was troubling. After analysis, I found that tags_view.recount() was being called multiple times.
I fixed that, and the change library time is now 5.3 seconds, with or without an ISBN custom column. Fix submitted.
Bottom line: I now see no difference in startup or change library times, whether or not an ISBN column exists.
I have no explanation for why you are seeing a factor of four change. Are you doing anything with the ISBN custom column when you change libraries, such as sorting, searching, or restricting on it?