LMDB
Using LMDB
Replace the implementation of the desired component with crux.lmdb/->kv-store
{
"crux/index-store": {
"kv-store": {
"crux/module": "crux.lmdb/->kv-store",
"db-dir": "/tmp/lmdb"
}
},
"crux/document-store": { ... },
"crux/tx-log": { ... }
}
{:crux/index-store {:kv-store {:crux/module 'crux.lmdb/->kv-store
:db-dir (io/file "/tmp/lmdb")}}
:crux/document-store {...}
:crux/tx-log {...}}
{:crux/index-store {:kv-store {:crux/module crux.lmdb/->kv-store
:db-dir "/tmp/lmdb"}}
:crux/document-store {...}
:crux/tx-log {...}}
It is generally advised to use independent LMDB instances for each component, although using a single instance for the transaction log and document store is possible. Do not share the LMDB instance used for the index store with other components as you cannot then perform Crux version upgrades.