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

Does CouchBase have a limit on number of buckets?

1 reply [Last post]
  • Login or register to post comments
Thu, 03/21/2013 - 10:21
a7ay
Offline
Joined: 03/21/2013
Groups: None

I am new to CouchBase and wondering is there a limit to number of buckets that can created in CouchBase 2.0?

2nd question,
Will a Couchbase instance with data distributed in many buckets perform slower than a instance with all data in one bucket?

Thanks for your response.
Ajay

Top
  • Login or register to post comments
Fri, 03/22/2013 - 00:58
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello Ajay,

1- Maximum number of buckets
Yes Couchbase has a limit in the number of bucket, usually 10 is a good number even if you can go up to 128, as you can see in this part of the documentation :
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-resta...

This is due to the fact that many processes such as write/read, replication, compaction, are organized by buckets so if you have too many buckets you may ended with too much CPU/IO consumption.

Note that this limit is usually not a problem since you can store many documents and documents types in each buckets.

Do you have a specific requirement that would need many buckets?

2- Performance & number of buckets
Based on my comment above, the short answer, is if you have less bucket it will be a little faster (since you have less CPU/IO consumption). But the reality is it depends of each use case and the type of data you store (JSON or other content, with or without views, .. )

Regards

__________________

Tug
@tgrall

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