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
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 9m11s
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user