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

Beta 2.0 dog slow!!!

8 replies [Last post]
  • Login or register to post comments
Wed, 09/19/2012 - 15:27
ezrover
Offline
Joined: 09/19/2012
Groups: None

I have many functions which write data to the database on a Quadcore, 16GB machine without much of a load. The Couchbase server is assigned 4GB of memory.

A typical Read takes about 2Seconds!!!

A Typical Write such as:

Entities.Couchbase.couchbaseClient.StoreJson(StoreMode.Add, transaction.Type + "_" + tableId + "_" + transaction.TransactionID, transaction);

Takes 5 to 7 seconds!!!

Is the .Net v2 api async? If not, how can we Async it since this is much worse than SQL server which has a lot of caching builtin!!!

I thought NoSQL was supposed to be significantly faster than SQL?! Am I missing something?!

Top
  • Login or register to post comments
Wed, 09/19/2012 - 22:24
SkeLLLa
Offline
Joined: 06/22/2012
Groups: None

Hello. I also use couchbase beta on cluster (2x ubuntu x86_64 m1.large on amazon). And for my web application it takes less than 0.5 sec to retreive view with quiet complicated map/reduce functions and render it as html. And about 0.3 sec for writing data. I use my own store/get-JSON functions since couchbase DP3 .net api. May be the problem is in those functions or in server (you didn't mention on which OS it's running).

Top
  • Login or register to post comments
Wed, 09/19/2012 - 23:40
ingenthr
Offline
Joined: 03/16/2010
Groups:

With things like get/set operations, most small operations happen in under a millisecond with gigabit ethernet.

What version of the server and client are you running? What does the network look like between the client and the server?

Top
  • Login or register to post comments
Thu, 09/20/2012 - 07:25
ezrover
Offline
Joined: 09/19/2012
Groups: None

Hi All, I am running Windows 2008R2.

I have noticed the api is sync and blocks!

Is there any way to turn logging off or change any parameters to speed up read/writes? The couchbase server is running on the same server as the app and web server. 16GB ram, 4gb dedicated to couch base. Quadcore...

Top
  • Login or register to post comments
Tue, 09/25/2012 - 13:16
ingenthr
Offline
Joined: 03/16/2010
Groups:

The .NET client library does have a synchronous API, yes.

Logging can be adjusted, sure. It does run a connection pool, and you can certainly fire off multiple requests in parallel.

See http://www.couchbase.com/docs/couchbase-sdk-net-1.2/couchbase-sdk-net-lo... and
http://www.couchbase.com/docs/couchbase-sdk-net-1.2/ more generally.

Top
  • Login or register to post comments
Sun, 10/07/2012 - 10:46
ezrover
Offline
Joined: 09/19/2012
Groups: None

Hi, I added a Timespan counter on the GetJson function and notice that previous to Beta 2.0 , on records that were cached in memory the timespan was almost 0 milliseconds to return the document but since Beta 2.0 it takes on average 13 milliseconds to return the document!

did you guys disable memory caching of the documents in Beta 2.0 ?

I am hitting the same document once every 15 seconds so there is no way it should NOT be in the memory cache!!! How can I check wether the memory caching is disabled?

Top
  • Login or register to post comments
Mon, 10/08/2012 - 13:49
mikew
Offline
Joined: 03/14/2011
Groups:

It is not possible to disable caching in any release of Couchbase. If you provide some code snippets of what you are doing then I will pass them on to out .NET developer to see if there is anything you might be doing incorrectly.

Can you also paste the results of ./cbstats :11210 timings into this forum posting.

Top
  • Login or register to post comments
Mon, 10/08/2012 - 13:53
ezrover
Offline
Joined: 09/19/2012
Groups: None

Hi Mike, I am simply following your sample code. nothing special nor different...

Can you please provide me with the full url for ./cbstats for me to test for you?

my server is at http://localhost:8091

Tkx

Top
  • Login or register to post comments
Mon, 10/08/2012 - 13:59
mikew
Offline
Joined: 03/14/2011
Groups:

cbstats is a script and is located in the bin directory of your Couchbase installation. Let me know if you still need more help finding it.

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