Counting the number of items in a bucket

francisco treacy francisco.treacy at
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>

> 2011/11/24 Stephen Bennett <steve at>:
> > 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        |
> Ubuntu Developer    |
> OpenStack Developer |
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list