Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Is it possible to update parts of a document in CouchBase?

3 replies [Last post]
  • Login or register to post comments
Wed, 06/06/2012 - 15:53
calvin21
Offline
Joined: 05/17/2012
Groups: None

I have a document, say {"FirstName":"John", "LastName":"Doe","eMail":"john.doe@johndoe.com"}.

Is there a way to issue a request to simply update one of the attributes of this document, say FirstName, after the document was initially created?

I'm using the java library (couchbase-client-1.1-dp.jar) and while there are methods to read and write full documents, it doesn't look like its possible to update a part of an existing document in place.

Thanks!

Top
  • Login or register to post comments
Thu, 06/07/2012 - 23:20
mikew
Offline
Joined: 03/14/2011
Groups:

Right now you will have to update the entire document. In the future you will be able to update individual fields. You can follow this issue here:

http://www.couchbase.com/issues/browse/MB-5502

Top
  • Login or register to post comments
Fri, 06/08/2012 - 13:32
calvin21
Offline
Joined: 05/17/2012
Groups: None

Thanks for your reply.. Isn't CouchBase based on CouchDb? I'm curious as to why CouchBase doesn't support updates if CouchDb does..

Top
  • Login or register to post comments
Fri, 06/08/2012 - 22:07
mikew
Offline
Joined: 03/14/2011
Groups:

Couchbase uses CouchDB technology, but it's not based on CouchDB. As a result we do not support all of the CouchDB features. We do plan on supporting many of the ideas implemented in CouchDB in the future though.

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