[PYCBC-10] object should serialize and deserialize when being persisted to the cluster Created: 22/Aug/11  Updated: 11/May/13  Resolved: 30/Aug/12

Status: Closed
Project: Couchbase Python Client Library
Component/s: library
Affects Version/s: None
Fix Version/s: 0.8.0
Security Level: Public

Type: New Feature Priority: Critical
Reporter: Matt Ingenthron Assignee: Benjamin Young
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
With most other client libraries, objects are automatically serialized when being stored and retrieved from the system. This client library should have similar functionality.

For example, the Java spymemcached client library reserves the flags field for itself, and will set flags to indicate the datatype. One datatype is a serialized Java object.

One good option would also be to allow serialization into JSON, since there is good, built in support for JSON since 2.6 (I believe).

 Comments   
Comment by Farshid Ghods (Inactive) [ 07/Sep/11 ]
looking into native python serialization

http://docs.python.org/library/pickle.html
Comment by Farshid Ghods (Inactive) [ 29/Sep/11 ]
got the pickle ( native python) serialization working. ( will upload to gerrit after testing )
Matt, based on your comment
1- i will use flags now to differentiate between objects/values we have to deserialize before sending it back to the client or not
2- how about other operations like append or prepend ?
Comment by Matt Ingenthron [ 24/Aug/12 ]
In 0.8 we'll make sure error handling is done appropriate, should be it's own bug, but this is good enough for now.
Comment by Benjamin Young [ 30/Aug/12 ]
http://review.couchbase.org/#/c/20376/
Generated at Fri Aug 29 16:20:28 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.