about summary refs log tree commit diff
path: root/database.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-05-21 15:51:31 -0400
committerJune McEnroe <june@causal.agency>2022-05-21 15:55:53 -0400
commitc300d03c783af49075aabf641450baad552b8159 (patch)
tree7f13fdee8ef00aca60a8ab9e66be2b08f814d6b9 /database.h
parentClose database before calling tls_close(3) (diff)
downloadlitterbox-c300d03c783af49075aabf641450baad552b8159.tar.gz
litterbox-c300d03c783af49075aabf641450baad552b8159.zip
Open database readonly from scoop
I originally changed it to RW so that PRAGMA optimize could run,
but since that relies on usage pattern information for that database
connection, I don't think it makes sense to run it in scoop anyway,
where only one query is run. Move it to litterbox only.
Diffstat (limited to '')
-rw-r--r--database.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/database.h b/database.h
index 4de1625..97872c9 100644
--- a/database.h
+++ b/database.h
@@ -152,7 +152,6 @@ static inline void dbClose(void) {
 		free(persist);
 		persist = prev;
 	}
-	dbExec(SQL(PRAGMA optimize;));
 	sqlite3_close(db);
 }
 
tle='2020-09-11 20:46:17 -0400'>2020-09-11Add influencer tweetJune McEnroe 2020-09-10Add The Kingdom of GodsJune McEnroe 2020-09-07Add SunglassesJune McEnroe 2020-09-06Add Between the BreathsJune McEnroe 2020-09-04Open /dev/tty in nudgeJune McEnroe 2020-09-04Add nudgeJune McEnroe 2020-09-03Build fbclock with -lzJune McEnroe 2020-08-29Add tweets from retweetsJune McEnroe