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

Query contains count(*) consider it special case as count(1)

    XMLWordPrintable

Details

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

    Description

      create index ix5 on `beer-sample`(city);
      select count from `beer-sample` where city = "Portland";

      Above query does index scan, but ti also does KV operation due to STAR as count operand.
      Consider this is special case of count(1) we can eliminate the KV operation. After change query become covered we may be able to use Index Scan count.

      Attachments

        Activity

          People

            gerald Gerald Sangudi (Inactive)
            Sitaram.Vemulapalli Sitaram Vemulapalli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                PagerDuty