0

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.

Andor
  • 5,523
  • 5
  • 26
  • 24

3 Answers3

1

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.

Craig
  • 1,001
  • 6
  • 11
0

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.

Andor
  • 5,523
  • 5
  • 26
  • 24
0

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

dams
  • 399
  • 1
  • 5