key filters

Ben Aviram ben at conduit.com
Wed Nov 23 03:04:29 EST 2011


Hi all,

We're working on analytics system based on Riak(1.0.2).

I'm storing my data in this structure:
Key = "userid_date"
Value = daily report values

So if I want for example to query last year's data I'm using key-filter like this
{
  "inputs":{
     "bucket":"report"
     "key_filters":[["tokenize", "-", 2],
                    ["between", "20110101", "20111231"]]
   },
}

Are key-filters efficient enough?
Or should I just send a bulk of keys to the map reduce query(ie. userid _20110101, userid _20110102, userid _20110103 ....)

Many thanks,
Ben

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20111123/acf69b68/attachment.html>


More information about the riak-users mailing list