Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-22-2020, 07:05 PM   #1
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,258
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Causes for library updates to be slow

What would cause the "journal-db metadata" file to idk how to put it, but when I am trying to import a list sometimes when the list takes way too long to import and update this file shows up in the library folder and indicates each book being updated (i assume). I noticed that when I am doing a lot of mass updates (like importing lists) that unless I give it a break and let the metadata for the books catch up then the import list ends up being very slow, and that journal-db metadata file shows up.

I just imported a simple list of titles/authors/dates/source with only updates to the source and date. However it took a very long time. I know the metadata was up to date (I checked using preferences), so, my question is, what would cause Calibre to slow down like that when all the metadata in the books is caught up (with the exception of the changes I was making)?

ALso, I know this seems like a plugin question, but it's really about that file that that indicates Calibre is running slow to update.
Rellwood is offline   Reply With Quote
Old 12-22-2020, 07:15 PM   #2
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,954
Karma: 74999999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
metadata.db-journal is a rollback journal for sqlite. If something goes wrong mid-change (e.g. power interuption - FAT32 filesystems were known for corrupting after them) it can restore and prevents things from breaking. It deletes itself when done.

Could be a number of things causing slowness. Overly complex composite columns needing to be calculated, a database that hasn't been vacuumed in a while, the drive being stored on a slow (or failing) hard drive.

Last edited by ownedbycats; 12-22-2020 at 07:24 PM.
ownedbycats is offline   Reply With Quote
Advert
Old 12-22-2020, 07:36 PM   #3
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Have a look at this post in the Import List plugin. It outlines the two issues affecting speed and how to deal with them.

There is a tip for people using linux that dramatically increases the speed of importing lists. If you can somehow have ramdisk in Windows —I don't know how because I don't use Windows— you can replicate the steps.
capink is offline   Reply With Quote
Old 12-22-2020, 07:39 PM   #4
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,258
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Quote:
Originally Posted by ownedbycats View Post
metadata.db-journal is a rollback journal for sqlite. If something goes wrong mid-change (e.g. power interuption - FAT32 filesystems were known for corrupting after them) it can restore and prevents things from breaking. It deletes itself when done.

Could be a number of things causing slowness. Overly complex composite columns needing to be calculated, a database that hasn't been vacuumed in a while, the drive being stored on a slow (or failing) hard drive.
Ok, well the library has been vaccumed, there are no composite columns outside of identifiers, the hard drive is good. I have a 1 year old computer with Windows 10 and a 1tb SSD and 16G RAM.

Oh, well, it is transient, so I was just wondering.
Rellwood is offline   Reply With Quote
Old 12-22-2020, 08:24 PM   #5
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,954
Karma: 74999999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by capink View Post
Have a look at this post in the Import List plugin. It outlines the two issues affecting speed and how to deal with them.

There is a tip for people using linux that dramatically increases the speed of importing lists. If you can somehow have ramdisk in Windows —I don't know how because I don't use Windows— you can replicate the steps.
There's Dataram's RAMDisk and AMD Radeon RAMDisk. (Note that you don't actually require an AMD Radeon to use the latter.)

Freeware versions are limited in size, but you're only copying metadata.db so you'll only need a fraction of what they offer you.

Last edited by ownedbycats; 12-22-2020 at 08:28 PM.
ownedbycats is offline   Reply With Quote
Advert
Old 12-22-2020, 11:46 PM   #6
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,258
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Quote:
Originally Posted by ownedbycats View Post
There's Dataram's RAMDisk and AMD Radeon RAMDisk. (Note that you don't actually require an AMD Radeon to use the latter.)

Freeware versions are limited in size, but you're only copying metadata.db so you'll only need a fraction of what they offer you.
1. What I read about the plugin performance issue is pretty much what I am dealing with, so I think this is the cause.

2. I have no clue how that ramdisk works, and I have no idea how to import a list from the command line, so I guess I am stuck with the occasional bottlenecking.
Rellwood is offline   Reply With Quote
Old 12-23-2020, 08:29 AM   #7
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
You will not import the books from the command line. You simply will copy one command to the command line, after which a dialog will popup where you can complete the process. The instructions for this is detailed in the linked post. Note that the path in the first step applies to linux and should be replaced by the path to your ramdisk in Windows, if you somehow managed to setup that.

I cannot offer any guidance on how to make ramdisk in Windows as I don't use it.

Edit: Also make sure you not using the same library you importing to in calibre gui. And that you have the latest version of the Import List plugin.

Edit2: If you cannot setup a ramdisk in Windows and want to just prevent the speed deterioration over time, you skip the step of copying your metadata.db to ramdisk, and simply copy the command and start from there. In that case, you will leave the override db checkbox unchecked, and make sure you tick the checkbox for re-initialize the db (lowering the number to 500 if you are not using ramdisk).

Last edited by capink; 12-23-2020 at 11:50 AM.
capink is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow with large library luoto Calibre 17 02-06-2020 04:44 PM
Onyx Library very slow dnastase Onyx Boox 2 09-23-2014 08:11 AM
app updates and syncing under iOS 6 extremely slow jswinden Apple Devices 14 10-31-2012 01:01 PM
Live library updates Shadewing Library Management 0 08-07-2012 10:01 AM
Slow Library Functions. Brianrh Kobo Reader 3 04-02-2012 03:01 AM


All times are GMT -4. The time now is 05:24 PM.


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