[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
|Project:||Couchbase Python Client Library|
|Reporter:||Matt Ingenthron||Assignee:||Benjamin Young|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
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).
|Comment by Farshid Ghods [ 07/Sep/11 ]|
looking into native python serialization
|Comment by Farshid Ghods [ 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 ]|