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

Optimize WHERE FALSE, WHERE TRUE, and SELECT META().id

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.5.0
    • 4.5.0
    • query
    • None
    • Untriaged
    • Unknown

    Description

      The planner should optimize the following:

      WHERE FALSE => skip Index Scan.

      WHERE TRUE => skip planning, use Primary Scan.

      SELECT META().id FROM xxx => use primary index as covering index, skip Fetch.

      DELETE FROM xxx => use primary index as covering index, skip Fetch.

      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:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty