Ticket #140 (closed enhancement: fixed)
Add auto_vacuum to SQLite database installs
| Reported by: | rickc | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 0.4.1 |
| Component: | Habari Core Software | Version: | SVN |
| Keywords: | SQLite, has_patch | Cc: | rickc |
Description
SQLite will quickly grow in size as data is added and deleted. Today I ran the VACUUM command on mine. It shrank from 45 megabytes to 52 kilobytes. If the database is created with
PRAGMA auto_vacuum = 1
the will not grow without end because after each commit to the database empty pages are moved to the end of the file and the file is truncated to remove them. The pragma has to be run when the database is created. It has no effect if used after there are tables in the database.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
