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

Improve covering indexing for partial indexes

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Critical
    • 5.0.0
    • 4.5.0
    • query
    • None

    Description

      Partial indexes are critical for our customers at scale. Covering indexing is also critical.

      We can improve the planner as follows: if the query predicate is a subset of the index filter, do not include the query predicate's expressions when deciding if the index covers the query.

      For example, this query should use ip as a covering index:

      create index ip on default(a, b) where y = 1 and z <= 2;

      explain select a, b from default where a > 0 and b >= 7 and y = 1 and z <= 2;

      Attachments

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

        Activity

          People

            gerald Gerald Sangudi (Inactive)
            gerald Gerald Sangudi (Inactive)
            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