counting the keys

thomas.bikeev thomas.bikeev at mac.com
Mon Nov 14 09:29:30 EST 2011


Hello list,

I am having troubles getting consistent results while counting keys in a small bucket containing +-33k objects. I do use secondary indexes: i.e:

query = client.index(name,"$key",key_start, key_end)
query.run()

The final count is never the same being off +/- 100 records, I also tried slicing the (hashed) keys and get count of the keys in the slices varying most of the time. Cluster consists of 3 2GB linode VMs running Riak 1.0.1

At the moment of querying there is no other activity that happens in the cluster, there is no ongoing transfers and riak console is clean as well.

Is there anything that I am missing?

Regards, Thomas


Run 1:

0 1 2140
1 2 2072
2 3 2063
3 4 2004
etc
Total: 32915

0 1 2134
1 2 2065
2 3 2071
3 4 1999
etc
Total: 32874


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20111114/fd7e491d/attachment.html>


More information about the riak-users mailing list