Create an index on some data. For more complex use-cases, use <a href="https://github.com/rvagg/node-level-mapped-index">level-mapped-index</a> or <a href="https://github.com/dominictarr/map-reduce">map-reduce</a>
point the dates of posts back to the the post.
var levelup =var sublevel =var index =var db =var postByDate =;
And then query it with a normal read-stream.
var through =postByDate
A strong benefit of this module is that the indexes are generated atomically (in a batch) with the triggering insert, so you can request the index back immediately after it has been inserted.
Use this module for things where the index doesn't change. for example - the date a blog was posted on can never change. how tall some one is can change, but their birthday can't change.
For indexes on changing data, use/write another module.