From 48655ce39d9bc8c74554bd4c9a6687e5ca30f26f Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Fri, 30 Mar 2018 13:17:47 -0700 Subject: [PATCH] try only disabling PRAGMA synchronous = OFF --- .travis.yml | 2 +- pokedex/db/load.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 498d8b5..effade5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,6 @@ python: - "pypy3" install: pip install -e . -before_script: pokedex load -S && pokedex reindex +before_script: pokedex setup -v script: py.test sudo: false diff --git a/pokedex/db/load.py b/pokedex/db/load.py index 2ecc109..50513f0 100644 --- a/pokedex/db/load.py +++ b/pokedex/db/load.py @@ -156,7 +156,7 @@ def load(session, tables=[], directory=None, drop_tables=False, verbose=False, s # SQLite speed tweaks if not safe and engine.dialect.name == 'sqlite': - session.execute("PRAGMA synchronous=OFF") + #session.execute("PRAGMA synchronous=OFF") session.execute("PRAGMA journal_mode=OFF") # Drop all tables if requested