remove WITHOUT ROWID

This is a minimal performance hotfix for storing large blobs in kvstore
This commit is contained in:
Jacek Sieka 2021-05-14 14:25:10 +02:00 committed by zah
parent d05cb5d3bd
commit 8890175b6a
1 changed files with 2 additions and 2 deletions

View File

@ -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