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
Post a Comment