Александр Киранов wrote:
Hi all!
Is there a way to iterate with all key-value pairs in LMDB database,
where all keys is in specified range?
I'm trying to use mdb_cursor_get() with MDB_SET_RANGE to search first pair.
Right.
Then I see only one way - use mdb_cursor_get() with MDB_NEXT and compare
key by memcmp().
For strict correctness you should be using mdb_cmp().
But it seems absolutely not effective.
I have no idea what that sentence means. What actual problem do you have?
Is there another solution for my task?
Thanks!
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/