mirror of https://github.com/status-im/nim-eth.git
remove WITHOUT ROWID
This is a minimal performance hotfix for storing large blobs in kvstore
This commit is contained in:
parent
d05cb5d3bd
commit
8890175b6a
|
@ -396,7 +396,7 @@ proc init*(
|
||||||
return err("Invalid pragma result: " & $x)
|
return err("Invalid pragma result: " & $x)
|
||||||
|
|
||||||
# TODO: check current version and implement schema versioning
|
# 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
|
let journalModePragma = prepare("PRAGMA journal_mode = WAL;"): discard
|
||||||
checkWalPragmaResult(journalModePragma)
|
checkWalPragmaResult(journalModePragma)
|
||||||
|
@ -417,7 +417,7 @@ proc init*(
|
||||||
CREATE TABLE IF NOT EXISTS """ & keyspace & """ (
|
CREATE TABLE IF NOT EXISTS """ & keyspace & """ (
|
||||||
key BLOB PRIMARY KEY,
|
key BLOB PRIMARY KEY,
|
||||||
value BLOB
|
value BLOB
|
||||||
) WITHOUT ROWID;
|
);
|
||||||
"""
|
"""
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in New Issue