summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-28 18:32:41 -0500
committerJune McEnroe <june@causal.agency>2019-12-28 18:32:41 -0500
commit121dd0b17e5c6e5d6d43d116345924206bc69fd5 (patch)
tree2c692154273b298bb69be609b9287506cd312401
parentCall tls_close and dbClose in atexit (diff)
downloadlitterbox-121dd0b17e5c6e5d6d43d116345924206bc69fd5.tar.gz
litterbox-121dd0b17e5c6e5d6d43d116345924206bc69fd5.zip
Run PRAGMA optimize in dbClose
Diffstat (limited to '')
-rw-r--r--database.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/database.h b/database.h
index 810ce94..0494851 100644
--- a/database.h
+++ b/database.h
@@ -132,6 +132,7 @@ static inline void dbClose(void) {
 		free(persist);
 		persist = prev;
 	}
+	dbExec(SQL(PRAGMA optimize;));
 	sqlite3_close(db);
 }
 
> 2024-09-13Add Fomapan 200 to films listJune McEnroe 2024-09-10Add August 29 picnic photosJune McEnroe 2024-09-08Apply some bold to trips renderingJune McEnroe 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe