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

Improve partial index sargable for like

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.1, 5.0.0
    • 5.0.0
    • query
    • None
    • Untriaged
    • Unknown

    Description

      create index ix2 on default where x like "test%";
      select meta().id from default where x like "test%"; – sargable to ix2
      select meta().id from default where x like "testa%"; – not saragble to ix2

      If rewrite equivalent index below both queries are sargable
      create index ix2 on default where x >= "test" and x < "tesu";

      Attachments

        For Gerrit Dashboard: MB-19574
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty