LevelDB: Iterate keys by insertion order -


what's strategy generating auto-incrementing keys in leveldb? goal able iterate on keys in order inserted.

since leveldb instance can accessed 1 application @ time, might use 64-bit long , increment in application. when opening db (and before allowing writes), find last inserted key can use seektolast() method of iterator.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -