Digikam/Check Database/ca: Difference between revisions
(Created page with "Digikam/Comprovar la base de dades") |
(Updating to match new version of source page) |
||
(10 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
== | == Verificar i optimitzar les bases de dades al digiKam == | ||
Transcrit des d'un article al blog d'en [[User:Dmitri Popov|Dmitri Popov]], el 19 de desembre de 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 <tt>sqlite3</tt> package using the <code>sudo apt-get install sqlite3</code> 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: | 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 <tt>sqlite3</tt> package using the <code>sudo apt-get install sqlite3</code> 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: | ||
{{Input|1=sqlite3 -line digikam4.db 'pragma integrity_check;' | {{Input|1=sqlite3 -line digikam4.db 'pragma integrity_check;' | ||
sqlite3 -line thumbnails-digikam.db 'pragma integrity_check;'}} | sqlite3 -line thumbnails-digikam.db 'pragma integrity_check;'}} | ||
Si les dues bases de dades estan en ordre, hauríeu de veureu el missatge {{Output|1=integrity_check = ok}} | |||
Per optimitzar les bases de dades, executeu les dues ordres a continuació: | |||
{{Input|1-sqlite3 -line digikam4.db 'vacuum;' | {{Input|1-sqlite3 -line digikam4.db 'vacuum;' | ||
sqlite3 -line thumbnails-digikam.db 'vacuum;'}} | sqlite3 -line thumbnails-digikam.db 'vacuum;'}} | ||
Executeu a continuació la verificació de la integritat una vegada més per assegurar-vos que tot funciona correctament, i ja està. | |||
[[Category: | [[Category:Gràfics/ca]] | ||
[[Category: | [[Category:Fotografia/ca]] | ||
[[Category: | [[Category:Guies d'aprenentatge/ca]] |
Latest revision as of 13:00, 4 July 2019
Verificar i optimitzar les bases de dades al digiKam
Transcrit des d'un article al blog d'en Dmitri Popov, el 19 de desembre de 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;'
Si les dues bases de dades estan en ordre, hauríeu de veureu el missatge
integrity_check = ok
Per optimitzar les bases de dades, executeu les dues ordres a continuació:
1-sqlite3 -line digikam4.db 'vacuum;' sqlite3 -line thumbnails-digikam.db 'vacuum;'
Executeu a continuació la verificació de la integritat una vegada més per assegurar-vos que tot funciona correctament, i ja està.