![]() |
#1 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,291
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What is the best way to defragment the SQL database?
What is the best way to defragment (speed up) Calibre's SQL database used for a given library?
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,353
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Library (dropdown menu) -> Library Maintenance -> Check Library. This function dumps the db to SQL, re-initializes the db, then reloads it from the SQL.
Defragging your file system after the check library can help by ensuring that the db is not spread over the disk. Defragging before might be just as good, assuming the defragger consolidates free space. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 15
Karma: 12
Join Date: Apr 2012
Device: ipad
|
execute the "vacuum" sql insctruction, cause sqlite3 keep space when used 1 time :
http://www.sqlite.org/lang_vacuum.html |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,353
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can Excel SQL query get metadata out of calibredb? | unboggling | Calibre | 24 | 01-20-2011 02:45 AM |
Using SQL against Calibre database | jjansen | Calibre | 3 | 03-29-2010 10:14 AM |
SQL Queries | iain_benson | Calibre | 9 | 06-04-2009 06:08 PM |