Archive for December 2011
By default, digiKam uses two SQLite databases for storing essential data: digikam4.db and thumbnails-digikam.db. And to make the application run fast and smoothly, it’s a good idea to check and optimize the databases every now and then. To do this on Ubuntu or its derivatives, you need to install the sqlite3 package using the sudo apt-get install sqlite3 command. Once you’ve done that, back up the digikam4.db and thumbnails-digikam.db databases. Open then the terminal and switch to the directory where the databases are stored. First off, you should check the integrity of both databases using the following commands:
sqlite3 -line digikam4.db 'pragma integrity_check;'
sqlite3 -line thumbnails-digikam.db 'pragma integrity_check;'
If both databases are in order, you should see the integrity_check = ok message. To optimize the databases, run the two commands below:
sqlite3 -line digikam4.db 'vacuum;'
sqlite3 -line thumbnails-digikam.db 'vacuum;'
Run then the integrity check once again to make sure that everything works properly, and you are done.
First off, the digiKam Tricks book has got a new title: digiKam Recipes. Why? Because I like the word “recipe” better. To celebrate this momentous event, a new version of the digiKam Recipes book is available for your reading pleasure. The new version features the Check and Optimize digiKam’s Databases recipe as well as a few minor tweaks and corrections.
Readers who already purchased the book will receive the new version free of charge. If you haven’t received your copy, please send your order confirmation as proof of purchase to firstname.lastname@example.org, and I’ll email you the latest version of the book.