Speedup Cleanup your digikam instructions

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Speedup Cleanup your digikam instructions

Rinus
Hi list,
I had to do this job anyway, so why not share with all.

To check your database´s integrety you need to install the command line
utillity ¨sqlite3¨ first if it is not already done.
¨sudo apt-get install sqlite3¨ worked perfectly well for me.

Make copies of your digikam4.db and and thumbnails-digikam.db

Go in console to the directory containing your db

copy and drop this entire line beneath inclusive the single quote sign:
sqlite3 -line digikam4.db 'pragma integrity_check;'

and hopefully you get the result:
integrity_check = ok

If you want to speedup/cleanup
Close any running digiKam program
go in to your digiKam base directory and backup your digikam4.db file.
 From command line run the following :
sqlite3 -line digikam4.db 'vacuum;'
and if done
sqlite3 -line thumbnail-digikam.db 'vacuum;'
In the meanwhile you can have a cup of coffee, or two, or maybe three.

And finaly do an integrety check on both db´s
If they are ok everything should run smooth now.

I just did it myself to make sure that everything is as should.
My digikam4.db went to half of it´s size and thumbnails-digikam.db
remained as before.
digiKam became much more responsive.




All credits go to Jean-François Rabasse, who teached me in this matter.

Good luck,
Rinus
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Speedup Cleanup your digikam instructions

nianderson
Any tips for mysql backend?
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Speedup Cleanup your digikam instructions

Rinus
Op 04-11-11 17:46, Nick Anderson schreef:
> Any tips for mysql backend?
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
Sorry, can´t help with that one.
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Speedup Cleanup your digikam instructions

RaveNBlack
In reply to this post by nianderson
I believe http://www.mysqlperformanceblog.com/2008/07/04/recovering-innodb-table-corruption/ will be useful

On Fri, Nov 4, 2011 at 4:46 PM, Nick Anderson <[hidden email]> wrote:
Any tips for mysql backend?
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users