Getting all keys in a bucket

Sean Cribbs seancribbs at gmail.com
Tue Feb 9 20:14:41 EST 2010


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

Sean

On 2/9/10 8:05 PM, Lucas Di Pentima wrote:
> Hello again,
>
> I inserted a few thousands (aprox 12000) records to a Riak embedded installation on my OSX Snow Leopard, and now I tried to get all the keys by using curl and ruby, and it takes a lot of time (some minutes!)
>
> I suppose 12k keys should not be lots of data, can you tell me why does it took so long? Is there a configuration I should be tweaking?
>
> Thanks
> --
> 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