mafintosh / hyperdb

Distributed scalable database
MIT License
753 stars 75 forks source link

createHistoryStream for specific prefix #143

Open brechtcs opened 6 years ago

brechtcs commented 6 years ago

Currently, it seems the createHistoryStream method only supports iterating over all records. If this is technically feasible, it could be handy to support streaming the history only of a specific prefix, just like createReadStream.

e-e-e commented 6 years ago

In the latest release you can now use createKeyHistoryStream(key) to get the history of a specific key. If you want to get the history a prefix recursively - this is not to difficult to achieve by combining get keyHistory and createReadStream.