Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Couchbase Server 2.0 Performance on linux.

1 reply [Last post]
  • Login or register to post comments
Mon, 10/31/2011 - 12:36
dchilmak
Offline
Joined: 08/19/2011
Groups: None

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

Top
  • Login or register to post comments
Mon, 01/02/2012 - 23:58
ingenthr
Offline
Joined: 03/16/2010
Groups:

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

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker