Debian Codegraph @

core/data/scripts/cleanup_digikamdb/cleanup_digikamdb.docbook

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.docbook.org/xml/4.5/docbookx.dtd"
4 [
5 <!ENTITY product "<command>cleanup_digikamdb</command>">
6 <!ENTITY version "1.1">
7 <!ENTITY digikam "digiKam">
8 <!ENTITY vacuum "<emphasis>VACUUM</emphasis>">
9 ]>
10
11 <refentry lang="en" id="cleanup_digikamdb">
12 <refentryinfo>
13 <productname>&product;</productname>
14 <authorgroup>
15 <author>
16 <contrib>Developer</contrib>
17 <firstname>Andi</firstname>
18 <surname>Clemens</surname>
19 <email>andi dot clemens at gmail dot com</email>
20 </author>
21 </authorgroup>
22 </refentryinfo>
23
24 <refmeta>
25 <refentrytitle>&product;</refentrytitle>
26 <manvolnum>1</manvolnum>
27 <refmiscinfo class="source">&product;</refmiscinfo>
28 <refmiscinfo class="software">&product;</refmiscinfo>
29 <refmiscinfo class="version">&version;</refmiscinfo>
30 </refmeta>
31
32 <refnamediv>
33 <refname>&product;</refname>
34 <refpurpose>
35 Cleanup the &digikam; databases to reduce their sizes and increase access speed
36 </refpurpose>
37 </refnamediv>
38
39 <refsynopsisdiv>
40 <cmdsynopsis>
41 &product;
42 <arg>-t</arg>
43 <arg>-T</arg>
44 <arg>-p</arg>
45 <arg>-h</arg>
46 </cmdsynopsis>
47 </refsynopsisdiv>
48
49 <refsect1
50 id="foo.options">
51 <title>Options</title>
52 <variablelist>
53
54 <varlistentry>
55 <term><option>-t</option></term>
56 <listitem>
57 <para>
58 Include thumbnail databases.
59 </para>
60 </listitem>
61 </varlistentry>
62
63 <varlistentry>
64 <term><option>-T</option></term>
65 <listitem>
66 <para>
67 Only cleanup thumbnail databases.
68 </para>
69 </listitem>
70 </varlistentry>
71
72 <varlistentry>
73 <term><option> -p <filename>path</filename> </option></term>
74 <listitem>
75 <para>
76 Specify a different database <emphasis>path</emphasis>.
77 If this option is not set or the specified <emphasis>path</emphasis> is invalid, the entry from the configuration file will be used.
78 </para>
79 </listitem>
80 </varlistentry>
81
82 <varlistentry>
83 <term><option>-h</option></term>
84 <listitem>
85 <para>
86 Show command line options.
87 </para>
88 </listitem>
89 </varlistentry>
90
91 </variablelist>
92 </refsect1>
93
94 <refsect1>
95 <title>Description</title>
96 <para>
97 &product; will cleanup and optimize the &digikam; database file.
98 This will, in most cases, lead to a smaller database file size and an increased access speed, because unneeded elements are removed from the database and data is optimized.
99 </para>
100 <para>
101 The program will make sure that no instance of &digikam; is running, because it is more safe to have no database access during
102 the optimization process. It then will read the &digikam; configuration file and determine the database location.
103 In a final step the database will be optimized by invoking the sqlite command '&vacuum;;' on it.
104 If more then one database is found in this location, &product; will optimize every database found in this path and below.
105 </para>
106 <para>
107 For further explanation, see the following description of the &vacuum; command from the sqlite3 website:
108 </para>
109 <para>
110 When an object (table, index, or trigger) is dropped from the database, it leaves behind empty space.
111 This empty space will be reused the next time new information is added to the database.
112 But in the meantime, the database file might be larger than strictly necessary.
113 Also, frequent inserts, updates, and deletes can cause the information in the database to become fragmented - scrattered out all
114 across the database file rather than clustered together in one
115 place.
116 </para>
117 <para>
118 The &vacuum; command cleans the main database by copying its contents to a temporary database file and reloading
119 the original database file from the copy.
120 This eliminates free pages, aligns table data to be contiguous, and otherwise cleans up the database file structure.
121 </para>
122 </refsect1>
123
124 <refsect1>
125 <title>Author</title>
126 <para>
127 &product; was written by Andi Clemens &lt;andi dot clemens at gmail dot com&gt;
128 </para>
129 </refsect1>
130
131 </refentry>
132