Couchbase Server 2.0 Performance on linux.
I am using Java SDK to insert/delete/update/view documents in a bucket . Insert operation alone takes 17 milliseconds !!! This doesn't include Connection logic .Isn't 17 ms very expensive ?? following is the code snippet .Please let me know If I am missing something ?
{
System.out.println("Start Timer .........");
long start = System.currentTimeMillis();
if((couchbase_client.add(sample.getId() ,0,sampleJson)).getStatus().isSuccess())
{
System.out.println("Successfully Inserted the document");
}
else
{
System.out.println("The document already exists!");
}
long stop = System.currentTimeMillis();
System.out.println("End Timer ......");
System.out.println("Insert Operation took " + (stop-start) + " milliseconds" ) ;
}
I heard Couchbase Server 2.0 takes microseconds for database operation(s) .....
Thanks
dchilmak
I can't immediately explain why you're seeing such high latencies. It definitely isn't normal. Can you describe your client and server setup?
One thought would be to add a whole bunch of things, then check the last one and average the time. Maybe there's some path (I can't think of one at a moment) that is slow to start here.
I run high throughput/low latency tests all the time. One example of a toy test:
https://github.com/ingenthr/ConcurrentSpyCouchbase