Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-1228

Update query used for BuildDeferredIndexes

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.1
    • None
    • None
    • 1

    Description

      At present it does 2 queries, this can be optimised and a race removed by condensing to 1 query.

      Attachments

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

        Activity

          The 1 query approach doesn't work on older servers so let's not do this.

          charles.dixon Charles Dixon added a comment - The 1 query approach doesn't work on older servers so let's not do this.

          We currently have an edge case where we can end up not building all of the indexes that the user expects. If a bucket has a primary index and a collection of the same name also has a primary index and both are deferred then we will end up building only one of these. We should make it clear that if no collection name is provided in the options then only indexes on the bucket itself will be built and adjust queries accordingly.

          charles.dixon Charles Dixon added a comment - We currently have an edge case where we can end up not building all of the indexes that the user expects. If a bucket has a primary index and a collection of the same name also has a primary index and both are deferred then we will end up building only one of these. We should make it clear that if no collection name is provided in the options then only indexes on the bucket itself will be built and adjust queries accordingly.

          People

            charles.dixon Charles Dixon
            charles.dixon Charles Dixon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty