Skip to content

Commit eb6d271

Browse files
committed
Improve pragma handling [ci fast]
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent f972d19 commit eb6d271

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

modules/nextflow/src/main/groovy/nextflow/cache/sqlite/SQLiteCacheStore.groovy

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,13 @@ class SQLiteCacheStore implements CacheStore {
8787

8888
// Configure SQLite for better performance and concurrency
8989
def stmt = connection.createStatement()
90-
stmt.execute("PRAGMA journal_mode=WAL;")
91-
stmt.execute("PRAGMA synchronous=NORMAL;")
92-
stmt.execute("PRAGMA cache_size=10000;")
93-
stmt.execute("PRAGMA temp_store=MEMORY;")
94-
stmt.execute("PRAGMA busy_timeout=30000;") // 30 seconds timeout
90+
stmt.execute("""
91+
PRAGMA journal_mode=WAL;
92+
PRAGMA synchronous=NORMAL;
93+
PRAGMA cache_size=10000;
94+
PRAGMA temp_store=MEMORY;
95+
PRAGMA busy_timeout=30000;
96+
""")
9597
stmt.close()
9698

9799
// Create tables if they don't exist

0 commit comments

Comments
 (0)