Try and optimize sqlite. #210

This commit is contained in:
Ruud
2012-05-05 01:26:02 +02:00
parent 710c2aa05f
commit efe554d723
+9 -1
View File
@@ -240,5 +240,13 @@ def setup():
from elixir import setup_all, create_all
from couchpotato import get_engine
engine = get_engine()
setup_all()
create_all(get_engine())
create_all(engine)
try:
engine.execute("PRAGMA journal_mode = WAL")
engine.execute("PRAGMA temp_store = MEMORY")
except:
pass