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"
An: riak-users@lists.basho.com
Betreff: Re: Getting largest key
You can store revertIndex = (MAX_KEY_VALUE - keyvaluef
: "Alex Moore"
An: riak-users@lists.basho.com, "Markus Doppelbauer"
Betreff: Re:
Hi Markus,
With Riak 1.4, 2i results are sorted in ascending order. So a range query from 0 to or to 0 with a max result of 1 will always return the lowest index value.
Hello,
Is there a chance to get the biggest key of a bucket or secondary index?
E.g.: A bucket (or 2i) contains the keys: 10, 20, 30, 40, 50
The result should be: 50
Could this problem be solved, by quering a secondary index from back, e.g.:
curl http://localhost:8098/buckets/mybucket/ind