|
|
#1 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,044
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
calibredb check-library command
Does the calibredb check-library command 'vacuum' the database ?
If not could it? BR |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,659
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It doesn't. You want to vacuum the db from the command line, just do:
calibre-debug -c "from calibre.library import db; db().new_api.vacuum()" |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@Kovid: I see that you need to change the tense of that answer
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,659
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah -- sorry I forgot to post here. https://github.com/kovidgoyal/calibr...693b245f37c078
|
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,092
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
|
|
|
|
| Advert | |
|
|
|
|
#6 | ||
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,044
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
So do I need to add calibre-debug lines to to my weekly housekeeping script, or will the next version of calibredb check-library do it for me?Might as well ask: does calibredb check-library do the database integrity check (the step between the vacuum and the consistency check in the GUI version) ? If not could it? BR |
||
|
|
|
|
|
#7 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,044
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() See ==>> SQLite Query Language: VACUUM BR |
|
|
|
|
|
|
#8 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,659
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The next release will do it and the the vacuum is the database integrity check.
|
|
|
|
|
|
#9 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,092
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calibre command line - how to use and can it check the database? | manawydan | Library Management | 8 | 06-30-2022 11:37 AM |
| calibredb command to remove all except epub | aliceander | Library Management | 5 | 07-04-2013 04:27 PM |
| Defining Metadata with "calibredb add" command line function. | macr0t0r | Calibre | 3 | 03-01-2012 08:36 PM |
| calibredb command line question (setting metadata) | mezme | Calibre | 0 | 12-06-2011 01:17 AM |
| Command line calibredb set_metadata problem | Nedan | Calibre | 1 | 02-27-2009 09:44 PM |