Differences between revisions 3 and 4
Revision 3 as of 2009-06-27 20:21:38
Size: 499
Editor: SamatJain
Comment:
Revision 4 as of 2012-02-09 01:44:07
Size: 511
Editor: SamatJain
Comment: Disable line numbers
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
{{{#!highlight sh {{{#!highlight sh numbers=off

Compacting SQLite databases

On occasion SQLite databases need to be compacted. Data contained within a database may be much smaller than the file's actual disk usage (this can occur in certain situations where many rows are deleted). To compact all SQLite databases in your home directory:

find ~ -name '*.sqlite' -exec sqlite3 '{}' 'VACUUM;' \;

Many applications are now using SQLite for storing data, such as Amarok, Firefox, etc.


CategoryCheatSheet

SamatsWiki: CheatSheet/SQLite (last edited 2019-02-11 00:37:07 by SamatJain)