ordered indexing

Aneil Mallavarapu aneil.mallavar at gmail.com
Sat Oct 3 12:58:21 EDT 2009

I'd like to be able to maintain an ordered index on my data.

CouchDB, BigTable/Hadoop keys are kept in alphabetical order, so it's
a simple matter
of producing a key derived from the data.

For example, in CouchDB, given the documents:
  { data: "foo", weight: 1}
  { data: "bar", weight: 2}
  { data: "baz", weight: 3}

We can write a view which serves the documents in the order given by
the weight field:

  function (doc) {

Changing the weight field efficiently produces a new ordering of
documents since the key
is indexed using a btree.

Is there a way to do something (with similar performance) in Riak?



More information about the riak-users mailing list