From 8890175b6a836823ef916b0eee58d41519e7a18a Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Fri, 14 May 2021 14:25:10 +0200 Subject: [PATCH] remove WITHOUT ROWID This is a minimal performance hotfix for storing large blobs in kvstore --- eth/db/kvstore_sqlite3.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/db/kvstore_sqlite3.nim b/eth/db/kvstore_sqlite3.nim index 9c90359..af99a17 100644 --- a/eth/db/kvstore_sqlite3.nim +++ b/eth/db/kvstore_sqlite3.nim @@ -396,7 +396,7 @@ proc init*( return err("Invalid pragma result: " & $x) # TODO: check current version and implement schema versioning - checkExec "PRAGMA user_version = 1;" + checkExec "PRAGMA user_version = 2;" let journalModePragma = prepare("PRAGMA journal_mode = WAL;"): discard checkWalPragmaResult(journalModePragma) @@ -417,7 +417,7 @@ proc init*( CREATE TABLE IF NOT EXISTS """ & keyspace & """ ( key BLOB PRIMARY KEY, value BLOB - ) WITHOUT ROWID; + ); """ let