Using $bucket index for listing keys
mkessler at basho.com
Fri Mar 11 07:55:02 EST 2016
How are you performing your 2i-based key listing? Querying with pagination
as shown in the documentation should work.
As an example here is the HTTP invocation:
Once the end of the key list is reached, the server returns an empty keys
list and no further continuation value.
Please let me know if this works for you.
On 11 March 2016 at 10:06, Oleksiy Krivoshey <oleksiyk at gmail.com> wrote:
> On 4 March 2016 at 19:11, Oleksiy Krivoshey <oleksiyk at gmail.com> wrote:
>> I have a bucket with ~200 keys in it and I wanted to iterate them with
>> the help of $bucket index and 2i request, however I'm facing the recursive
>> behaviour, for example I send the following 2i request:
>> bucket: 'BUCKET_NAME',
>> type: 'BUCKET_TYPE',
>> index: '$bucket',
>> key: 'BUCKET_NAME',
>> qtype: 0,
>> max_results: 10,
>> continuation: 'AAAA'
>> I receive 10 keys and continuation 'BBBB', I then repeat the request with
>> continuation 'BBBB' and at this point I can receive a reply with
>> continuation 'CCCC' or 'AAAA' or even 'BBBB' and its going in never ending
>> I'm running this on a 5 node 2.1.3 cluster.
>> What I'm doing wrong? Or is this not supported at all?
> riak-users mailing list
> riak-users at lists.basho.com
Client Services Engineer
Basho Technologies Limited
Registered Office - 8 Lincoln’s Inn Fields London WC2A 3BP Reg 07970431
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users