Re: Fastest way to count number of items in Secondary Index query

2012-01-26 Thread Elias Levy
On Thu, Jan 26, 2012 at 6:27 AM, wrote: >Input = {index, Bucket, Index, Key}, >IdentityQuery = [{reduce, > {modfun, riak_kv_mapreduce, reduce_identity}, > [{reduce_phase_only_1, true}], > true}], > > My queries can return hund

RE: Fastest way to count number of items in Secondary Index query

2012-01-25 Thread Jeremy Raymond
number of items in Secondary Index query Jeremy, Requests to 2i's HTTP interface will return keys rather the objects themselves. You may find better performance counting the returned keys rather than employing a M/R job. -- Ian Plosker Developer Advocate Basho Technologies

Re: Fastest way to count number of items in Secondary Index query

2012-01-25 Thread Ian Plosker
Jeremy, Requests to 2i's HTTP interface will return keys rather the objects themselves. You may find better performance counting the returned keys rather than employing a M/R job. -- Ian Plosker Developer Advocate Basho Technologies On Monday, January 23, 2012 at 2:27 PM, Jeremy Raymond w

Fastest way to count number of items in Secondary Index query

2012-01-23 Thread Jeremy Raymond
What is the fastest way to count the number of items in a secondary index range query? I'm currently feeding an index input directly into the riak_kv_mapreduce:reduce_count_inputs/2. Anything faster than doing this? Anyway to query an index without loading the objects themselves? -- Jeremy __