02-14-2020, 11:44 AM | #1 |
Member
Posts: 16
Karma: 10
Join Date: Dec 2008
Location: Edmonton, AB
Device: Kobo Aura One
|
Calibre Very Slow
Calibre was extemely slow and since I only have 5800 books, this seemed odd. I found the metadata.db file was 2GB in size. Finding this a ridiculous size for so few books, I poured over the file structure. I found 52 metadata.opf files that were over 1MB in size and some as large as 250MB. I either could edit the metadata for the book (I found some insanely large comments that needed to be shortened) within Calibre and it saved much smaller (less than 16KB), or I had to delete three books (the one I needed to be deleted would freeze Calibre unless it was sandwiched between two good books) and reimport them. Many hours later and Calibre works as it did before. The metadata.db file is now less than 15MB, significantly smaller than 2GB. Most of the large file sizes occurred on January 31, 2020 but the books were purchased many years prior. I'm not sure it's a bug but something happened on that date and I did not have any computer problems at that time nor do I recall Calibre doing anything odd.
I'm posting this in case others are struggling with Calibre being slow. |
02-14-2020, 02:17 PM | #2 |
Well trained by Cats
Posts: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Your findings are NORMAL. The OPF just backs up what is IN the DB
You must have some VERY LARGE book comments in those with OPF files (or custom comment like notes) Most of my books with typical comments fitting within a single window (no scroll bars) are 14K FWIW, I have seen comments with a Sample chapter You might want to EDIT those LARGER comments (Another download is not going to help, as that is where they probably came from ) |
Advert | |
|
02-14-2020, 02:54 PM | #3 | |
Resident Curmudgeon
Posts: 73,932
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Right click on the library's icon in the toolbar and select Library maintenance > Check library and it will compact the database. Then try running Calibre again and see if it runs faster. |
|
02-14-2020, 03:32 PM | #4 | |
null operator (he/him)
Posts: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
02-14-2020, 05:04 PM | #5 | |
Member
Posts: 16
Karma: 10
Join Date: Dec 2008
Location: Edmonton, AB
Device: Kobo Aura One
|
Quote:
Yes, there were a few books that had sample chapters or a lot of reviews in the comment section but these were relatively small. Again, the books were purchased prior to 2015 yet had their metadata updated on January 20th but not by myself. I did clean these up as well. |
|
Advert | |
|
02-14-2020, 05:13 PM | #6 | |
Member
Posts: 16
Karma: 10
Join Date: Dec 2008
Location: Edmonton, AB
Device: Kobo Aura One
|
Quote:
|
|
02-14-2020, 05:16 PM | #7 | |
Member
Posts: 16
Karma: 10
Join Date: Dec 2008
Location: Edmonton, AB
Device: Kobo Aura One
|
Quote:
|
|
02-14-2020, 05:26 PM | #8 | |
Member
Posts: 16
Karma: 10
Join Date: Dec 2008
Location: Edmonton, AB
Device: Kobo Aura One
|
Quote:
|
|
02-14-2020, 05:54 PM | #9 |
Well trained by Cats
Posts: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You don't have the picture.
metadata.opf gets rewritten any time ANY of the data for that record in the DB changes. It is a Backup. Sometimes other activities trigger a rewrite. Adding /removing a Column, making a change to a TAG that was also USED in that book. Obviously, you triggered a update on 20 Jan (btw there is a button item under maintenance:backup status, that forces a update) It does not matter WHEN you downloaded a HOG of a comment. It is there until you open the MDE and PRUNE it (or delete the book) |
02-14-2020, 06:04 PM | #10 | |||
null operator (he/him)
Posts: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
The optional Audit Log plugin maintains a history of metadata changes, even lets you undo them, but you have to have it installed. See Index of plugins Quote:
Quote:
BR Last edited by BetterRed; 02-14-2020 at 06:07 PM. |
|||
02-15-2020, 09:31 AM | #11 | |
Member
Posts: 16
Karma: 10
Join Date: Dec 2008
Location: Edmonton, AB
Device: Kobo Aura One
|
Quote:
|
|
02-15-2020, 09:36 AM | #12 | |
Member
Posts: 16
Karma: 10
Join Date: Dec 2008
Location: Edmonton, AB
Device: Kobo Aura One
|
Quote:
|
|
02-15-2020, 09:43 AM | #13 | |
Well trained by Cats
Posts: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
ANY VALUE change for (used by) a book, causes THAT BOOK. I said Used by because: fixing someting in the Tag Browser,, Links to All books where used. Calibre is a true (and pretty elegantly done) Relational database underneath. Define once, use many |
|
02-15-2020, 01:12 PM | #14 | ||
null operator (he/him)
Posts: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
@ladyoflorien - you wrote in your opening post that there were some 'insanely large comments' that you edited/removed - what was the nature of the 'insanity'? I'm wondering if it might have been uuencoded data. I recall some discussion about replacing url links in Comments (e.g. to http://someplace.com/some_image.jpg) with the uuencoded binary data. I don't use the CleaningComments plugin, but if such a thing were to be done, then that plugin might provide a good place to do it. BR |
||
02-16-2020, 10:04 AM | #15 | |
Member
Posts: 16
Karma: 10
Join Date: Dec 2008
Location: Edmonton, AB
Device: Kobo Aura One
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre had become very slow | jukin | Calibre | 11 | 07-30-2015 01:41 AM |
Calibre 2.4 slow to CC | gbm | Calibre Companion | 1 | 09-26-2014 01:05 PM |
PRS-600 Calibre - slow to do everything | lemonstar | Sony Reader | 5 | 02-16-2012 02:56 PM |
Calibre very slow | shane.hamilton | Calibre | 9 | 07-21-2010 03:10 PM |
calibre - very slow conversion, very slow on PRS | cremofix | Calibre | 3 | 06-10-2009 04:21 PM |