Wei han
Wei han
when I iterator our lmdb, on the line shows in the error log: for (var found = cursor.goToFirst(); found !== null; found = cursor.goToNext()) { console.log('key', found); console.log('value', txn.getString(dbi, found));...
Thanks. Works as buffers. Finally! But has another question about encoding, in our lmdb, key toString() we get=> key locales for this Buffer, how can I know the encoding? Thus...
Ha, Thanks for your help.
Node: v8.12.0
It does not happened every time. operation is quite standard, like try { this.dbi = this.LMDB.openDbi({ name: DEFAULT_REPO, keyIsBuffer: true, // using buffer for enconding issue create: true, // will...
One more thing is I have this loop: const cursor = new lmdb.Cursor(this.txn, this.dbi); let locales = []; for (let key = cursor.goToFirst(); key !== null; key = cursor.goToNext()) {...
this is the problem. It does not happened every time. But just happened randomly.
I find the cause may from the missing "cursor.close()" in some code. My mistake, just ignore that. If possible, can you add this line in the Readme, on the part...
I think so. After I close the cursor, it tested overnight and works fine until now. (interval task to read the lmdb file)
Thanks. If you need more info, please let me know.