Skip to content

Instantly share code, notes, and snippets.

@mattsnyder
Created January 16, 2013 19:18
Show Gist options
  • Save mattsnyder/4549917 to your computer and use it in GitHub Desktop.
Save mattsnyder/4549917 to your computer and use it in GitHub Desktop.
Filtering keys by date range in Riak
Riak::MapReduce.new(Ripple.client).
add(@bucket_to_filter,
[
[:tokenize, "-", 1], #Note: 1 based index
[:between, start_time.to_s(:key), end_time.to_s(:key)]
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment