Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre Companion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2014, 03:58 AM   #31
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by chaley View Post
With the help of Kaufman's experiments and logs, I found the problem.

When a device disconnects, calibre writes the metadata cache file to the disc, a process that can take some time if there are a lot of books on the device. For example, for Kaufman with some 6,000 books on the device, writing the cache took around 10 seconds. The write is done in the background as part of the disconnect sequence. The problem is that if the user quits calibre while this write is happening then the write process is killed, leaving the cache with an indeterminate number of entries. If is of course perfectly reasonable to quit calibre after disconnecting, especially as it doesn't indicate that it is busy doing something. I needed to find a way to ensure that quitting "early" doesn't corrupt the cache.

After some discussion with Kovid, I made two changes. The first is to write the cache after metadata is sent to CC, ensuring that the cache file is always "close-to" up-to-date. The second is to write the information to a tmp file then replace the existing cache with that file. This guarantees that the cache is either fully replaced or not touched. Both of these changes are in calibre source now and will be in the next calibre release.
This doesn't happen only with CC. I've had the same problem with Kobo driver... till I discovered it and waited patiently a bit prior to close calibre
Terisa de morgan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
That's an improvement! caheaton Kobo Reader 8 04-11-2011 01:04 PM
call for testers from source: dramatic performance improvement chaley Calibre 3 12-15-2010 09:45 AM
Wireless internet connection frustrating IDS connection Socrates iRex 8 10-21-2009 12:46 PM


All times are GMT -4. The time now is 12:43 PM.


MobileRead.com is a privately owned, operated and funded community.