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? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -