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

[RQG Dynamic Indexing] Dynamic index is not used for queries with function<field>

    XMLWordPrintable

Details

    • Triaged
    • No

    Description

      Dynamic Index created:
      CREATE INDEX `idx_simple_table_db_3042_simple_table` ON `simple_table_db_3042_simple_table`((distinct (array `v` for `v` in pairs(self) end))) WITH

      { "defer_build"=true }

      Query issued:
      select meta().id from simple_table_db_3042_simple_table where abs(char_field1) > 0;
      explain SELECT primary_key_id FROM simple_table_db_3042_simple_table WHERE ( MILLIS( datetime_field1 ) ) > 0;
      explain SELECT primary_key_id FROM simple_table_db_3042_simple_table WHERE ( STR_TO_UTC( datetime_field1 ) ) > 0;

      None of the above queries use dynamic index which is created.
      The queries use the dynamic index when no function is used.

      Attachments

        Issue Links

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

          Activity

            People

              keshav Keshav Murthy
              Prerna.Manaktala Prerna Manaktala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty