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

Only instantiate Admin connection as needed

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • .backlog3.x
    • None
    • None
    • None
    • 1

    Description

      The couchbase.cluster.Cluster._admin property attempts to provide on demand instantiate of an Admin connection for the cluster but we currently access this as soon as we open a bucket (passed in as a parameter to couchbase_core.cluster._Cluster.open_bucket). We should further delay this construction until it is actually needed, i.e. when calling CollectionManager or ViewIndexManager methods, where the initial Cluster connection is not already admin (otherwise, we can reuse the initial cluster connection for this).

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty