ldb: change some lmdb options.
This commit is contained in:
parent
681855093c
commit
7414e1b65f
@ -42,14 +42,14 @@ function ldb(options) {
|
||||
cacheSize: options.cacheSize || (8 << 20),
|
||||
writeBufferSize: options.writeBufferSize || (4 << 20),
|
||||
maxOpenFiles: options.maxOpenFiles || 64,
|
||||
filterBits: 0,
|
||||
paranoidChecks: false,
|
||||
memory: false,
|
||||
|
||||
// For LMDB if we decide to use it:
|
||||
sync: options.sync || false,
|
||||
mapSize: options.mapSize || 300 * (1024 << 20),
|
||||
mapSize: options.mapSize || 2 * (1024 << 20),
|
||||
writeMap: options.writeMap || false,
|
||||
noSubdir: options.noSubdir !== false,
|
||||
|
||||
// For browser buffer keys
|
||||
bufferKeys: options.bufferKeys,
|
||||
@ -83,7 +83,7 @@ ldb.getBackend = function getBackend(db) {
|
||||
break;
|
||||
case 'lmdb':
|
||||
name = 'lmdb';
|
||||
ext = 'lmdb';
|
||||
ext = 'mdb';
|
||||
break;
|
||||
case 'memory':
|
||||
case 'rbt':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user