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

document keys spread/choice

1 reply [Last post]
  • Login or register to post comments
Wed, 08/22/2012 - 02:38
PaoloN
Offline
Joined: 08/10/2010
Groups: None

Hi,

I would like to know if there are any best practices related to choosing the keys of documents stored in a couchbase cluster.
Is there a possibility to make the cluster unbalanced (as an example because many keys fall in the same section of the ring)?
In general what are the recommendations in order to pick a key schema that works well with couchbase, are there any differences regarding write heavy vs. read heavy scenarios connected with key choices?

Thanks,

Paolo

Top
  • Login or register to post comments
Thu, 08/23/2012 - 15:09
scalabl3
Offline
Joined: 07/18/2012
Groups:

Generally speaking your key design should support your use in application logic, for instance, more easily recognizable patterns for your own development:

Users
u::10001
u::92039
etc.

Products
p::28282
etc.

The hashing of keys is pretty uniform across cluster so generally stays very distributed. We currently don't provide any way to group keys and specify node locations. There shouldn't be any issues with write or read heavy scenarios in this scenario, the entire cluster is designed for heavy read/write loads. We have considered some options for grouping related items but it's not currently in the immediate pipeline.

__________________

@scalabl3
Technical Evangelist
Couchbase Inc.
 

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