|
@@ -99,6 +99,9 @@ class SQLiteClusterStore:
|
|
|
def _init_db(self) -> None:
|
|
def _init_db(self) -> None:
|
|
|
Path(self.db_path).parent.mkdir(parents=True, exist_ok=True)
|
|
Path(self.db_path).parent.mkdir(parents=True, exist_ok=True)
|
|
|
with self._conn() as conn:
|
|
with self._conn() as conn:
|
|
|
|
|
+ conn.execute("PRAGMA journal_mode=WAL")
|
|
|
|
|
+ conn.execute("PRAGMA synchronous=NORMAL")
|
|
|
|
|
+ conn.execute("PRAGMA busy_timeout=5000")
|
|
|
conn.execute(
|
|
conn.execute(
|
|
|
"""
|
|
"""
|
|
|
CREATE TABLE IF NOT EXISTS clusters (
|
|
CREATE TABLE IF NOT EXISTS clusters (
|