From e3876c0e1335449ae3c1ec37bc231e583900bac9 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sat, 27 May 2023 09:37:21 +0300 Subject: [PATCH] updated nocgo busy_timeout pragma --- core/db_nocgo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/db_nocgo.go b/core/db_nocgo.go index 5906857a..5ab2bb05 100644 --- a/core/db_nocgo.go +++ b/core/db_nocgo.go @@ -11,7 +11,7 @@ func connectDB(dbPath string) (*dbx.DB, error) { // Note: the busy_timeout pragma must be first because // the connection needs to be set to block on busy before WAL mode // is set in case it hasn't been already set by another connection. - pragmas := "?_pragma=busy_timeout(1000)&_pragma=journal_mode(WAL)&_pragma=journal_size_limit(200000000)&_pragma=synchronous(NORMAL)&_pragma=foreign_keys(ON)" + pragmas := "?_pragma=busy_timeout(10000)&_pragma=journal_mode(WAL)&_pragma=journal_size_limit(200000000)&_pragma=synchronous(NORMAL)&_pragma=foreign_keys(ON)" db, err := dbx.Open("sqlite", dbPath+pragmas) if err != nil {