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

equality expression can trigger full index scan

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.0.0
    • 4.0.0
    • query
    • Security Level: Public
    • None
    • Untriaged
    • Unknown

    Description

      It is discovered during DP scenario testing that equality operator may also trigger partial/full index scan since cbq is always using range scan and only lower bound value is provided.

      .fromString('SELECT * FROM `travel-sample` WHERE type=$1 AND id=$2')
      .consistency(Nq.Consistency.REQUEST_PLUS);

      2015-04-18T19:26:11.403Z-07:00 [Info] ScanCoordinator: SCAN_REQ scan id: 2, defnId: 4674590982267643329, index: travel-sample/def_type, type: scan, span: range (["cbTest"],[] incl:low) pagesize: 1 limit: 92233720368547758072015-04-18T19:26:12.008Z-07:00 [Info] ScanCoordinator: SCAN_RESULT scan id: 2 rows: 29466 finished scan (successful)

      Attachments

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

        Activity

          People

            gerald Gerald Sangudi (Inactive)
            jliang John Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                PagerDuty