Hi Riak users,


Unfortunately for me I need to implement the get all keys method in our
system (I know it is not recommended)



I am developing classes with the Java Api and using the streaming option as
following



StreamingOperation<String> keys = riakBucket.keys();

while (keys.hasNext()) {

final String next = keys.next();

out.write(next);

out.newLine();

}

riakBucket.keys().cancel();



My problem here is that for a simple class I inserted in Riak, after ~4.7
million keys I am getting a timeout from Riak.

Is there any way to configure the read operation timeout or to somehow
catch the timeout and continue to receive the next keys (Can I somehow bulk
read the keys)?



Thanks,



Shimon
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to