ssb: Oh golly you're supposed to request a pragma analyze periodically this way.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 9m11s

This commit is contained in:
2025-11-29 16:17:54 -05:00
parent e44a85c92b
commit c0dd47ba28

View File

@@ -503,6 +503,10 @@ void tf_ssb_db_init(tf_ssb_t* ssb)
tf_printf("Adding flags column.\n"); tf_printf("Adding flags column.\n");
_tf_ssb_db_exec(db, "ALTER TABLE messages ADD COLUMN flags INTEGER"); _tf_ssb_db_exec(db, "ALTER TABLE messages ADD COLUMN flags INTEGER");
} }
tf_printf("Optimizing...\n");
_tf_ssb_db_exec(db, "PRAGMA optimize=0x10002");
tf_printf("Done optimizing.\n");
tf_ssb_release_db_writer(ssb, db); tf_ssb_release_db_writer(ssb, db);
} }