Aw: Re: Getting largest key

2013-09-21 Thread Markus Doppelbauer
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

Re: Getting largest key

2013-09-19 Thread Markus Doppelbauer
: "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.

[no subject]

2013-09-18 Thread Markus Doppelbauer
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