Vacuum programs.sqlite

This cuts a few hundred KiB from the database.
This commit is contained in:
Eelco Dolstra 2016-11-10 18:27:04 +01:00
parent 6883275653
commit 2fd4d6beea

View file

@ -313,6 +313,12 @@ void mainWrapped(int argc, char * * argv)
threadPool.enqueue(std::bind(doPath, i.first, i.second));
threadPool.process();
/* Vacuum programs.sqlite to make it smaller. */
{
auto programsState(programsState_.lock());
programsState->db.exec("vacuum");
}
}
int main(int argc, char * * argv)