secondary indexe: All content tagged as secondary indexe in NoSQL databases and polyglot persistence
Monday, 27 February 2012
Riak Precommit Hooks for Creating Secondary Indeces
I wanted to create a secondary index on a field so that when I want to look up the data, it doesn’t require a full M/R to do. The great Riak Handbook showed a couple of examples of creating a secondary index, and it looked simple enough. It actually is pretty simple, but the documentation and examples are few and far between, so I’m going to share my experience. […] Whenever an item is created in this bucket, I want a secondary index based on the app. I never update items in this bucket, only create. In fact, I never delete these items either, but figured my code should handle that case.
Erlang code included.
Original title and link: Riak Precommit Hooks for Creating Secondary Indeces (©myNoSQL)
via: http://startup-tech.tumblr.com/post/15300179505/riak-precommit-hooks