Beginners performance problem
Lars J. Nilsson
lars.j.nilsson at cubeia.com
Sun Feb 24 13:51:32 EST 2013
Oh, hallelujah! That got me up to approx 1200 mods/second. Thank you! Now
I'm confident enough to move on to cluster-testing.
/Lars J. Nilsson
Executive VP, Cubeia Ltd
+46 (0) 704 / 10 69 53
On 24 February 2013 18:59, Brian Roach <roach at basho.com> wrote:
> One issue that immediately stands out:
> > >>>
> > Bucket bucket = sharedClient.createBucket("accounts1").execute();
> > bucket.store(a.getId().toString(),
> > >>>
> '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...
More information about the riak-users