View Single Post
Old 11-27-2012, 05:13 PM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Mythlandia View Post
It appears that color coloring of columns based upon formats has the same bad effect as a custom column using formats. However, it appears (not proven) that when you start calibre it assumes the metadatabase is correct (at least some of the time) and does not force a recheck of the directories, thus when you abort and restart calibre it goes in quickly without a check of the directories; when you do a quick switch of libraries, it appears that directories are then sometimes (not always) forced to be rechecked.

The good news is that in the few minutes since I turned off column coloring, all the library switches have been measured in seconds, not minutes.
The bad news is that my library isn't as pretty...

Thanks theducks, PeterT and DoctorOhh for your help in solving this for me.
In principle, coloring should not cause the delays you are seeing. Of course, practice might be different, but I have looked at this code several times (I wrote it) and I don't see why it should be so.

My guess is that you have a custom column "built from other columns" in your library that shows formats, and that at some time in the past you sorted on that column. By default calibre remembers the last N sorts (IIRC N equals 5). If the formats column is in the last N, calibre will look at every book and start slowly. If it is not, then calibre will start much more quickly.

You can control this behavior explicitly by using the tweak "Specify columns to sort the booklist by on startup (ID: sort_columns_at_startup)". I think that the tweak is also applied when switching libraries.
chaley is offline   Reply With Quote