Excellent idea! Thanks a lot.
This gives me the possibility to fetch the largest key.
 
Markus
 
 
Gesendet: Donnerstag, 19. September 2013 um 14:58 Uhr
Von: "Daniel Iwan" <iwan.dan...@gmail.com>
An: riak-users@lists.basho.com
Betreff: Re: Getting largest key
You can store revertIndex = (MAX_KEY_VALUE - keyvaluefromberkley) in Riak as
a secondary index for every object. Then get a full range for that index
limiting results to 1. In this way you'll get one result with max
keyvaluefromberkley. Reversing order in a nutshell, because I think values
for 2i in Riak are always ascending.

Regards
Daniel



--
View this message in context: http://riak-users.197444.n3.nabble.com/no-subject-tp4029126p4029153.html
Sent from the Riak Users mailing list archive at Nabble.com.

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to