Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-3621

StellarCluster.BucketAsync creates new buckets, scopes, colls on every call

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None
    • 2
    • SDK06: FIT, PS, CXX

    Description

       public ValueTask<IBucket> BucketAsync(string name) => new(new StellarBucket(name, this, _queryClient));
      

      The cluster and query are shared across all instances, but that would mean that bucket.Dispose() would close the channel for all other buckets as well, for example. Bucket.Dispose is not implemented in Stellar, however, it could me lots of unecessary heap allocations that would be GC'd in the first gen.

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty