degifted
degifted
Imagine that you have to modify some values in a big table. Currently you have to iterate over the table and alter desired values by putString() method. But this would...
@Venemo In the meanwhile I implemented quick and dirty method which addresses my needs ``` NAN_METHOD(CursorWrap::putUInt32) { Nan::HandleScope scope; CursorWrap *cw = Nan::ObjectWrap::Unwrap(info.This()); uint32_t value = Nan::To(info[0]).ToLocalChecked()->Value(); MDB_val data; data.mv_size...
It would allow to store strings as keys in lexicographical order. Imagine that you are implementing full-text search and store keywords as keys in a table. Then, if keys are...
> This patch as it stands makes existing lmdb files incompatible with the patched version. And vice versa of course. Which would be "bad". Please don't do this. Well, I...
In my case I am trying to implement drop-down list of suggestions in the search input box, just like on google.com
I mean I already implemented it with aid of this patch and it works properly :)
Thanks guys for such a comprehensive covering of this topic. Let me summarize my thoughts on that. 1. As I said, this patch obviously will not break binary compatibility of...
Well in my case performance benefit was up to 2..4% depending on database size, so for me it was worth hacking. It turned out that dealing with v8 objects and...
Example of use: var tmpArray = []; for (var index = cursor.goToRangeBinary(key, tmpArray); index != null; index = cursor.goToPrevBinary(tmpArray)) { value = tmpArray[0]; }
@Venemo Since we cannot pass a reference to a string or number as a function argument, I create an array outside of the loop and then get an acquired value...