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

Migrate collection attributes to use timedelta for durations

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-beta.3
    • 3.0.0-rc
    • None
    • None
    • 1
    • SDK9: Coll/Txn/Doc chipping

    Description

      The SDK2 Bucket attributes, such as Client.timeout, Client.views_timeout, Client.compression, tracing settings, etc are now couchbase_core.client.Client attributes.

      Note that these settings are per LCB instance so currently that is per Collection, but after we start sharing instances it will be per Bucket. If one adds the converson from timedelta to 'float in seconds' at the couchbase_core.client.Client level then that should be relatively future-proof in this respect, although we will still need to rework the Bucket class to expose the properties on the relevant Bucket instance.

       

      Also update migration guide/other docs.

      Attachments

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

        Activity

          david.kelly David Kelly added a comment -

          I believe this is done, but lets be sure.

          david.kelly David Kelly added a comment - I believe this is done, but lets be sure.
          david.kelly David Kelly added a comment -

          Oh – in fact the expiry is still an integer. Lets fix it

          david.kelly David Kelly added a comment - Oh – in fact the expiry is still an integer. Lets fix it
          Ellis.Breen Ellis Breen added a comment - - edited

          Hi, please see the clarification of what this Jira refers to by 'attributes' above - apologies for the previously brief description.

          Ellis.Breen Ellis Breen added a comment - - edited Hi, please see the clarification of what this Jira refers to by 'attributes' above - apologies for the previously brief description.

          People

            david.kelly David Kelly
            Ellis.Breen Ellis Breen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty