From 657c320ab465b2e07844c82b1a35079d3ac02692 Mon Sep 17 00:00:00 2001 From: aitbc Date: Wed, 15 Apr 2026 08:58:56 +0200 Subject: [PATCH] Change SQLite journal mode from WAL to DELETE in blockchain node database configuration - Update PRAGMA journal_mode from WAL to DELETE in set_sqlite_pragma - Addresses filesystem permission issues with WAL mode in containerized environments --- apps/blockchain-node/src/aitbc_chain/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/blockchain-node/src/aitbc_chain/database.py b/apps/blockchain-node/src/aitbc_chain/database.py index d86eddd2..c694da5f 100755 --- a/apps/blockchain-node/src/aitbc_chain/database.py +++ b/apps/blockchain-node/src/aitbc_chain/database.py @@ -24,7 +24,7 @@ _engine = create_engine(f"sqlite:///{settings.db_path}", echo=False) @event.listens_for(_engine, "connect") def set_sqlite_pragma(dbapi_connection, connection_record): cursor = dbapi_connection.cursor() - cursor.execute("PRAGMA journal_mode=WAL") + cursor.execute("PRAGMA journal_mode=DELETE") cursor.execute("PRAGMA synchronous=NORMAL") cursor.execute("PRAGMA cache_size=-64000") cursor.execute("PRAGMA temp_store=MEMORY")