From a6024e2859af019dc77f1b6331ebef0507dce344 Mon Sep 17 00:00:00 2001 From: Scott Wolchok Date: Sun, 27 Feb 2011 17:33:05 -0500 Subject: [PATCH] enable WAL in sqlite --- pyfpdb/Database.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 6694b562..b2a4347c 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -464,6 +464,7 @@ class Database: log.warning(_("Some database functions will not work without NumPy support")) self.cursor = self.connection.cursor() self.cursor.execute('PRAGMA temp_store=2') # use memory for temp tables/indexes + self.cursor.execute('PRAGMA journal_mode=WAL') # use memory for temp tables/indexes self.cursor.execute('PRAGMA synchronous=0') # don't wait for file writes to finish else: raise FpdbError("sqlite database "+database+" does not exist")