heapwolf / lev

The complete REPL & CLI for managing LevelDB instances.
MIT License
296 stars 36 forks source link

key cache and big dbs #26

Closed juliangruber closed 10 years ago

juliangruber commented 10 years ago

When opening a rather large db it can take >10s before you get to the repl, and I assume that is because the key cache is built on startup. Would be nice to add an option to disable that, or to build key caches while entering sublevels.

heapwolf commented 10 years ago

yea, ive talked about this with people but just haven't got around to it. the decision i've come to is to build cache on demand. I'll start working on this.

DamonOehlman commented 10 years ago

That would be awesome - just started using lev to get a feel for how npmd is storing stuff, and yeah this :)

heapwolf commented 10 years ago

Will work on this today.

juliangruber commented 10 years ago

https://github.com/hij1nx/lev/commit/07da95a81021ea582b82a1079b1d197018e08669