key filters

Ben Aviram ben at
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
     "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,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list