DB: More easy IO mode

We move the DB anyway at the end, no need to be so harsh
This commit is contained in:
Markus Goetz 2013-08-18 16:10:30 +02:00
parent 868f8029a2
commit ea6caed5a3

View file

@ -253,7 +253,9 @@ int csync_statedb_load(CSYNC *ctx, const char *statedb) {
}
/* optimization for speeding up SQLite */
result = csync_statedb_query(ctx, "PRAGMA synchronous = FULL;");
result = csync_statedb_query(ctx, "PRAGMA synchronous = OFF;");
c_strlist_destroy(result);
result = csync_statedb_query(ctx, "PRAGMA journal_mode = MEMORY;");
c_strlist_destroy(result);
result = csync_statedb_query(ctx, "PRAGMA case_sensitive_like = ON;");
c_strlist_destroy(result);