Browse Source

Try and optimize sqlite. #210

tags/build/2.0.0.pre1
Ruud 13 years ago
parent
commit
efe554d723
  1. 10
      couchpotato/core/settings/model.py

10
couchpotato/core/settings/model.py

@ -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

Loading…
Cancel
Save