summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Brej <cbrej@cs.man.ac.uk>2010-08-09 01:29:07 +0100
committerCharlie Brej <cbrej@cs.man.ac.uk>2010-08-09 01:29:07 +0100
commita0a45c3cf75c66ac0e7b768a71a78a9dbaf3121d (patch)
tree76a5a6c85591e8aee2d925d2fa4d3e3737608a6a
parente60beb5af7fed4a916bf327f7244e454656b17b3 (diff)
Dont synchronise on sqlite inserts and increase the cache
-rw-r--r--src/libtidbit/tidbit-database-sqlite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libtidbit/tidbit-database-sqlite.c b/src/libtidbit/tidbit-database-sqlite.c
index c33cb74..02ba81f 100644
--- a/src/libtidbit/tidbit-database-sqlite.c
+++ b/src/libtidbit/tidbit-database-sqlite.c
@@ -101,6 +101,8 @@ PtrTidbitDatabase tidbit_database_sqlite_new (void)
my_sqlite_exec (db, "REPLACE INTO settings (key, value) VALUES ('schema_version', 1);");
}
+ my_sqlite_exec(db, "PRAGMA synchronous = 0;");
+ my_sqlite_exec(db, "PRAGMA cache_size = 1000000;");
return tidbit_database;
}