Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-10

object should serialize and deserialize when being persisted to the cluster

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: library
    • Security Level: Public
    • Labels:
      None

      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).

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        looking into native python serialization

        http://docs.python.org/library/pickle.html

        Show
        farshid Farshid Ghods (Inactive) added a comment - looking into native python serialization http://docs.python.org/library/pickle.html
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        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 ?

        Show
        farshid Farshid Ghods (Inactive) added a comment - 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 ?
        Hide
        ingenthr Matt Ingenthron added a comment -

        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.

        Show
        ingenthr Matt Ingenthron added a comment - 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.
        Show
        BigBlueHat Benjamin Young added a comment - http://review.couchbase.org/#/c/20376/

          People

          • Assignee:
            BigBlueHat Benjamin Young
            Reporter:
            ingenthr Matt Ingenthron
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes