Thread: Tag troubles
View Single Post
Old 06-19-2010, 04:51 AM   #12
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,348
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by dwanthny View Post
Mine takes about a minute or so, but this is the same time it would take if I shut it down and restarted it.
Based on experimentation and observation, the two processes (disconnect and restart) are similar.

When you disconnect (or restart) the Sony, its SW scans its database, doing several checks. The most important is verifying that the date of a book in its DB is the same as the date of the book. Cards in the device are subjected to the same tests. This check requires the SW to look at each book in its filesystem. It also (seems to) throw away fields it doesn't use. For example, my 300 removes 'title-sorter', but I understand that other models use it. Next, it verifies the collections. Finally, it next checks the filesystem for books not in the database. This operation requires a scan of the filesystem. It may do this operation and the date check at the same time.

If a date is different or a book has appeared, the SW extracts the metadata from the file (if it can) and rebuilds the database entry. This is an expensive operation.

Calibre 0.7.1 and Sony had a difference of opinion over what date one should use, and because Sony won, the time to disconnect went up (a lot) while Sony rebuilt its database. Starting with 0.7.2, calibre was changed, and I haven't been able to find any scenario where Sony disagreed with the dates. I am not saying that there isn't such a scenario, and want to hear about anomalous conditions.

Clearly the time taken will depend on the number of books the Sony must look at, the speed of the memory and memory cards, and the speed of the Sony's processor. I don't know whether the models differ in basic performance profiles.

Making a bald assertion: disconnecting after using calibre should take no approximately the same time as connecting and immediately disconnecting with calibre not started. This assertion is conditioned upon you doing nothing to the device with calibre during its connection. The first connect/disconnect is can be an exception because calibre builds its cache. If someone runs this experiment and experiences different times (more than a few seconds), I would like to hear about it.
Quote:
The good news though is that on connection to calibre it takes only a couple of seconds to show the list of books on the device.
The cache does seem to work.
chaley is offline   Reply With Quote