Skip to content

Commit 7414fca

Browse files
committed
Enable sqlite internal statement cache
x-ref: mattn/go-sqlite3#1387 Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
1 parent e265c2b commit 7414fca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/drivers/sqlite/sqlite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
)
2020

2121
var (
22-
DefaultParams = "_journal_mode=WAL&_busy_timeout=30000&_synchronous=NORMAL&_txlock=immediate&cache=shared"
22+
DefaultParams = "_journal_mode=WAL&_busy_timeout=30000&_synchronous=NORMAL&_txlock=immediate&_stmt_cache_size=20&cache=shared"
2323
DefaultDSN = "./db/state.db?" + DefaultParams
2424

2525
schema = []string{

0 commit comments

Comments
 (0)