mirror of
https://github.com/status-im/nim-eth.git
synced 2025-01-12 15:24:21 +00:00
1995afb87e
Storing large blobs in a "WITHOUT ROWID" table turns out to be extremely slow when the tree must be rebalanced. * Split out keystore capability into separate interface, making each keystore a separate instance * Disable "WITHOUT ROWID" optimization by default * Implement prefix lookup that allows iterating over all values with a certain prefix in their key
18 lines
336 B
Nim
18 lines
336 B
Nim
{.used.}
|
|
|
|
import
|
|
std/[os, unittest],
|
|
chronicles,
|
|
../../eth/db/[kvstore, kvstore_rocksdb],
|
|
./test_kvstore
|
|
|
|
suite "RocksStoreRef":
|
|
test "KvStore interface":
|
|
let tmp = getTempDir() / "nimbus-test-db"
|
|
removeDir(tmp)
|
|
|
|
let db = RocksStoreRef.init(tmp, "test")[]
|
|
defer: db.close()
|
|
|
|
testKvStore(kvStore db, false)
|