How to get Riak keys last modified since X?

203 views Asked by At

Is there a way to get a list of keys from Riak, which were modified since a specified time? A stream of changes would be equally good. MapReduce is not a recommended way.

3

There are 3 answers

0
Craig On BEST ANSWER

There are a couple of possible solutions to this problem (all of which have their advantages and disadvantages):

If you can use Riak TS it supports SQL and makes selecting records by date/time range quite easy.

0
Andor On

It seems that commit hooks are the closesest thing to a solution. Pre-commit hooks may be written in JavaScript, so I can trigger a HTTP request or append to a change log.

0
dams On

you can also use secondary indexes to tag your keys with the time they were added, and perform time-range requests