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

PROBE side Should consider index order for pagaination

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • Morpheus
    • 7.0.3, 7.1.0
    • query
    • None
    • 1

    Description

       

      create index ix10 ON default (lc1,lc2 DESC, lc3);
      create index ix12 ON default (rc1,rc2 DESC, rc3);
       EXPLAIN SELECT l.lc1, r.rc2 FROM default AS l JOIN default r USE HASH (PROBE) ON l.lc3 = r.rc3 WHERE l.lc1 = 10 AND r.rc1 = 30 ORDER BY r.rc2 DESC;
      

      In Above r is PROBE and ix12 used it should avoid explicit ORDER.

       

       

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            Sitaram.Vemulapalli Sitaram Vemulapalli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty