Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-06-2020, 01:16 PM   #16
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
Quote:
Originally Posted by DaltonST View Post
If you make a lot of metadata changes via various plugins, you will see that the metadata.db file will grow enormously due to unclaimed SQLite database space.

Real example statistics from a SQLite browsing tool that does a compress:

Before compacting<<<----------->>>After compacting:
Page Count = 118,342<<<---------->>>Page Count = 3,606
Database Size = 121,182,208 bytes<<>>Database Size = 3,692,544 bytes

So, the metadata.db file went from over 121mb to less than 4mb in size.


If you have many Libraries, and if you use Job Spy, there is a menu option under "Utilities" named "Vacuum/Compress metadata.db [All Other Libraries]". It vacuums all except the current Library which is open in Calibre at the moment. Libraries must be "closed" to be vacuumed.
Dalton's page count was reduced to 1/40th of its original size and db size reduced to 1/33th. How does this affect Calibre performance?

What are the side effects of never vacuuming?


Kovid, do you think "vacuuming" should be automatically done by Calibre?
I ask for 2 reasons:
1. I don't want any changes to modification date
2. If it's beneficial, it's good for it to be automatic

Last edited by droopy; 07-06-2020 at 01:28 PM.
droopy is offline   Reply With Quote
Old 07-06-2020, 01:36 PM   #17
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: 11,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by droopy View Post
What are the side effects of never vacuuming?
From other posts I've read on this forum, the metadata.db file gets oversized and over time the Calibre library starts slowing down, though I suppose this might also depend on the computer hardware too.
ownedbycats is offline   Reply With Quote
Advert
Old 07-06-2020, 11:08 PM   #18
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by droopy View Post
Dalton's page count was reduced to 1/40th of its original size and db size reduced to 1/33th. How does this affect Calibre performance?
It should only affect performance when starting calibre or when any database writes are done. Most of the latter will probably not be noticed as they are done in the background. Closing calibre might take longer as any database updates not already done have to be done.

Looking at the databases for my libraries, I suspect that @DaltonST's are an anomaly. The biggest is 16MB, and it's size changed by less than 1MB when I vacuumed it. The others are smaller and the change was similar. But, how much is needed depends on how many changes you are making. For those using an intake database, where books are added and removed constantly, it is probably more noticeable. For anyone adding one book a day, fixing the metadata and making no more changes, it probably isn't noticeable.
Quote:
What are the side effects of never vacuuming?


Kovid, do you think "vacuuming" should be automatically done by Calibre?
I ask for 2 reasons:
1. I don't want any changes to modification date
2. If it's beneficial, it's good for it to be automatic
I don't see any changes to the book modification date. @theducks said something about it, but, the post seems to be incomplete. I think he meant when moving the book between libraries.
davidfor is offline   Reply With Quote
Old 07-06-2020, 11:15 PM   #19
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Like I said a long time ago in this thread, vacuuming needs to be done only once in a blue moon, if ever. I dont know what DaltonST does to his database, but any normal user is not going to be affected in any significant way by db fragmentation. And no vacuuming does not affect last modified date.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to best format thumb drive to put my library on it LadyKate Library Management 18 12-09-2016 11:51 PM
How to fix "Extra Titles" in Database in " Check Library - Problems Found millan Library Management 33 07-16-2015 07:12 AM
What's your update rule-of-thumb? Anabana Calibre 20 06-13-2012 11:23 PM
Rule of Thumb, US Copyright Poppa1956 General Discussions 24 06-23-2010 04:38 AM
Rule of thumb-- never stand on a wombat. ardeegee Lounge 17 04-07-2010 01:42 PM


All times are GMT -4. The time now is 06:28 PM.


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