View Single Post
Old 12-02-2023, 07:01 PM   #43
compurandom
Guru
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 920
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
Playing with this for months. I'm starting to think the real issue is just the sqlite database itself being slow. Slow can be caused by too many entries in the table, or it can be caused by too much churn of books being added and deleted, leaving the database fragmented.

I've noticed that when sync repeatedly fails and I do a soft database reset (by deleting it and letting all my sideloaded books rescan and then restoring bookmarks and categories with calibre), the calibre metadata sync itself gets much faster and also kobo sync stops failing.

I have to wonder if deleting large categories works because the database is smaller, or if it removes a bunch of fragments, or perhaps both. If it is database access time rather than database size threshold, this might explain some of the seeming randomness of the issue.

So next time I see a sync fail, I'm going to try compressing the database and see if that fixes it and see if it also shortens the calibre metadata sync too.

Last edited by compurandom; 12-02-2023 at 09:02 PM.
compurandom is offline   Reply With Quote