riak has traditionally not counted things well, if at all. recently with the 1.4 release they have announced support for distributed counters, http://basho.com/basho-announces-availability-of-riak-1-4/. Try using that to keep track of various things?
-Alexander Sicular @siculars On Jul 22, 2013, at 1:17 PM, kpandey <[email protected]> wrote: > All, > This is kind of like the last thorn before moving with riak > implementation for me. > My use case for now is storing > 1) transient payload in memory backend with ttl > 2) storing something similar to user sessions in bitcask with ttl. > > Since the backend stores are ttl, I need to be able to count the no of > active objects in the buckets every so often ( say every 10 min) > js mapreduce is just not usuable and either times out or gives wrong count. > Is there some efficient way to count the total live objects in these buckets > backed by backend with ttl? > > I'm using riak 1.4 > > > Thanks > Kumar > > > > > -- > View this message in context: > http://riak-users.197444.n3.nabble.com/Counting-total-items-in-a-backend-store-with-TTL-tp4028494.html > Sent from the Riak Users mailing list archive at Nabble.com. > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
