Beginners performance problem

Brian Roach roach at
Sun Feb 24 12:59:19 EST 2013

One issue that immediately stands out:

> >>>
> Bucket bucket = sharedClient.createBucket("accounts1").execute();
> >>>

'CreateBucket()' is doing a fetch of the bucket properties and then storing
them back to the cluster when 'execute()' is called.

You want to fetch the bucket once then pass around the reference to it, or
at the very least use:
Inside your threads.

The only time you ever want to use createBucket() is when you want to
modify the bucket properties.

- Roach
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list