Retrieve keys on bucket by timestamp

Sean Cribbs sean at
Thu Sep 4 09:44:14 EDT 2014

Hi tele,

Yes, a secondary index is the most reasonable way to accomplish this.
Here's an example using the Python client:

now = time.gmtime()
myobj.add_index('modified_int', now)

bucket.get_index('modified_int', now-3600, now+3600)

Hope that helps.

On Wed, Sep 3, 2014 at 9:09 PM, tele <tele at> wrote:
> Hi All,
> Is there any way i can retrieve from a bucket the keys that last
> change N minutes ago for example.
> If possible cis there a way to do it with riak-python-client?
> Or the only way is to add a timestamp index in the bucket and update in
> case of changes, so that i will be able to query that index.
> Thanks
> :tele
> _______________________________________________
> riak-users mailing list
> riak-users at

Sean Cribbs <sean at>
Software Engineer
Basho Technologies, Inc.

More information about the riak-users mailing list