Use the sqlite3_db_release_memory() call periodically. It should
have no effect except hopefully smaller server memory usage.
Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
+2019-11-25 Frank Ch. Eigler <fche@redhat.com>
+
+ * debuginfod.cxx (groom): Add a sqlite3_db_release_memory()
+ at the end of periodic grooming to try to shrink the process.
+
2019-11-24 Mark Wielaard <mark@klomp.org>
* debuginfod.cxx (test_webapi_sleep): Removed.
database_stats_report();
+ sqlite3_db_release_memory(db); // shrink the process if possible
+
gettimeofday (&tv_end, NULL);
double deltas = (tv_end.tv_sec - tv_start.tv_sec) + (tv_end.tv_usec - tv_start.tv_usec)*0.000001;