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

Explore using index order for non-covered unnest

    XMLWordPrintable

Details

    • Task
    • Resolution: User Error
    • Major
    • Elixir
    • Elixir
    • query
    • None
    • 0

    Description

      Expose Index order for non-covered unnest

      create index ix2 ON default(ALL arr1);
      explain select d.* FROM default AS d USE INDEX(ix2) UNNEST d.arr1 AS u WHERE u > 10 ORDER BY u;
      

      https://github.com/couchbase/query/blob/master/planner/build_scan_unnest.go#L121
      preserve index order if it make sense.

      Attachments

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

        Activity

          People

            bingjie.miao Bingjie Miao
            Sitaram.Vemulapalli Sitaram Vemulapalli
            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