mirror of
https://git.nolog.cz/NoLog.cz/headline.git
synced 2025-01-31 11:53:35 +01:00
Use WAL in sqlite3 to avoid database locks that prevent reads
This commit is contained in:
parent
9e5ff527ba
commit
e9aa8a3a06
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ db_con = sqlite3.connect("../data/diffs.db")
|
|||
db = db_con.cursor()
|
||||
|
||||
db.executescript("""
|
||||
PRAGMA journal_mode=WAL;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS diffs (
|
||||
diff_id INTEGER PRIMARY KEY,
|
||||
article_id TEXT,
|
||||
|
|
Loading…
Reference in a new issue