Getting all keys in a bucket

Sean Cribbs seancribbs at gmail.com
Wed Feb 10 12:13:51 EST 2010


Lucas,

It doesn't block while trying to list the keys, but instead sends them 
to the client as they come back from the vnodes.  It's also not trying 
to build a large JSON object in memory, but builds a bunch of small ones 
which come across one-per-chunk.

Sean

On 2/10/10 9:42 AM, Lucas Di Pentima wrote:
> Hi Sean,
>
> I tried the streamed version, it worked pretty nice, a lot faster that the not streamed version, can you tell me why?
>
> Regards
>
> El 09/02/2010, a las 22:14, Sean Cribbs escribió:
>
>    
>> Lucas,
>>
>> Listing keys is kind of expensive right now.  If you use the streaming feature, however, you should get keys back gradually, in chunks.
>>
>> Example:
>>
>> $ curl http://localhost:8098/raw/bucket?keys=stream
>>
>>      
> --
> Lucas Di Pentima - Santa Fe, Argentina
> Jabber: lucas at di-pentima.com.ar
> MSN: ldipenti75 at hotmail.com
>
>
>
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>    






More information about the riak-users mailing list