App::Chart::Vacuum -- compact and cleanup the database
- App::Chart::Vacuum::vacuum (key=>value, ...)
Run the vacuum cleaner over the database.
Latest price and intraday image records older than 14 days are deleted and the SQLite
VACUUMcommand is run to compact the database.sqdb and notes.sqdb files. Consistency checks on the symbol list contents are applied. Status messages and compacted sizes are printed.
This is the operative part of the
--vacuumcommand line option and the Vacuum dialog box.
Copyright 2008, 2009, 2010, 2011, 2013, 2014, 2016 Kevin Ryde
Chart is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Chart is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Chart; see the file COPYING. Failing that, see http://www.gnu.org/licenses/.