Warning, /documentation/digikam-doc/maintenance_tools/maintenance_database.rst is written in an unsupported language. File is not indexed.

0001 .. meta::
0002    :description: digiKam Maintenance Tool Database Cleaning
0003    :keywords: digiKam, documentation, user manual, photo management, open source, free, learn, easy, maintenance, database, cleanup, Shrink
0004 
0005 .. metadata-placeholder
0006 
0007    :authors: - digiKam Team
0008 
0009    :license: see Credits and License page for details (https://docs.digikam.org/en/credits_license.html)
0010 
0011 .. _maintenance_database:
0012 
0013 Database Cleaning
0014 =================
0015 
0016 .. contents::
0017 
0018 .. figure:: images/maintenance_database_cleaning.webp
0019     :alt:
0020     :align: center
0021 
0022     The digiKam Maintenance Database Options
0023 
0024 This process will analysis your database files to consolidate the contents. The Core database is always cleaned. You can select additional databases for cleaning by selecting one of the extra options listed below:
0025 
0026     - **Cleanup the Thumbnails database**.
0027 
0028     - **Cleanup the Faces database**.
0029 
0030     - **Cleanup the Similarity database**.
0031 
0032     - **Shrink all databases** to ensure de-fragmentation and just keeps the database small.
0033 
0034 .. note::
0035 
0036    The last option leads to the vacuuming (shrinking) of the databases. Vacuuming is supported both for SQLite and MySQL.
0037 
0038 While the scan for new items process is under progress, as the process may take much time and digiKam cannot be used, a non modal dialog appear to make sure that no database corruption occurs.
0039 
0040 .. figure:: images/maintenance_database_process.webp
0041     :alt:
0042     :align: center
0043 
0044     The digiKam Database process Working in the Background.