Counting the number of items in a bucket
francisco.treacy at gmail.com
Thu Nov 24 12:07:32 EST 2011
Actually, I think it's less efficient (more data sent over the wire) – but
happens to be faster. The client is simply buffering key lengths from a
chunked response, which happens to be way faster than supplying keys=true.
I haven't looked at how this is implemented in Riak.
2011/11/24 Soren Hansen <soren at linux2go.dk>
> 2011/11/24 Stephen Bennett <steve at bennettweb.org>:
> > This is an extremely efficient way of counting the size of the bucket.
> Perhaps I missed it. What does it do that makes it extremely
> efficient? Are you perhaps just speaking in terms of lines of code? Or
> does the riak-js library do fancy things in the .count() method?
> Soren Hansen | http://linux2go.dk/
> Ubuntu Developer | http://www.ubuntu.com/
> OpenStack Developer | http://www.openstack.org/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users