Is it possible to update parts of a document in CouchBase?
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!
Thanks for your reply.. Isn't CouchBase based on CouchDb? I'm curious as to why CouchBase doesn't support updates if CouchDb does..
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.
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