Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-25046

Index key starts with bucket alias, wrong index might be selected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.0
    • 4.5.0, 4.6.3, 5.0.0
    • query
    • None
    • Triaged
    • No

    Description

       

      CREATE INDEX ix5 ON default(orders.order_id);
      -- The following two queries uses ix5 which is not right
      EXPLAIN SELECT meta().id FROM default orders WHERE order_id = 10;
      EXPLAIN SELECT meta().id FROM default orders WHERE orders.order_id = 10;
      -- The following query is NOT uses ix5 which is right
      EXPLAIN SELECT meta().id FROM default d WHERE order_id = 10;
      

       

      Attachments

        Issue Links

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

          Activity

            People

              ajay.bhullar Ajay Bhullar
              Sitaram.Vemulapalli Sitaram Vemulapalli
              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