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 <so...@linux2go.dk>

> 2011/11/24 Stephen Bennett <st...@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/
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to