mafintosh / hyperdb

Distributed scalable database
MIT License
752 stars 75 forks source link

[enhancement] option for createReadStream() to return nodes in the reverse order that they were added. #75

Open e-e-e opened 6 years ago

e-e-e commented 6 years ago

I have been looking into adding an option into the iterator but it does look non-trivial.

Before the release of 3.0.0-0 I had been using my own createReadStream from within hyper-graph-db - https://github.com/e-e-e/hyper-graph-db/blob/master/lib/hyperdbModifier.js. It returned keys in reverse order to which they were added by the user. Thinking about it - I am not sure if this is 100% important but still wanted to raise it as a potential enhancement.