LMDB
Using LMDB
Replace the implementation of the desired component with xtdb.lmdb/->kv-store
{
"xtdb/index-store": {
"kv-store": {
"xtdb/module": "xtdb.lmdb/->kv-store",
"db-dir": "/tmp/lmdb"
}
},
"xtdb/document-store": { ... },
"xtdb/tx-log": { ... }
}
{:xtdb/index-store {:kv-store {:xtdb/module 'xtdb.lmdb/->kv-store
:db-dir (io/file "/tmp/lmdb")}}
:xtdb/document-store {...}
:xtdb/tx-log {...}}
{:xtdb/index-store {:kv-store {:xtdb/module xtdb.lmdb/->kv-store
:db-dir "/tmp/lmdb"}}
:xtdb/document-store {...}
:xtdb/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 XTDB version upgrades.