Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3332

Secondary Indexes being ignored even with hints when addressing dynamic columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.6.0
    • None
    • None
    • None

    Description

      I have the following index built

      create local index “indexonCol1" on "table ("col1");

      ##index is used as expected
      select * from "table" where "col1" = 'Value1';

      ##index is not used as expected

      select * from "table"("dynamicColumn" varchar) where "col1" = 'Value1';

      even using a hint

      select /*+ index("table" "indexonCol1") */ * from "table"("dynamicColumn" varchar) where "col1"='Value1'

      it still uses a full table scan rather than an index. I would have expected that the secondary Index would have been used in the secondary query as well given that the underlying table and conditions are the same

      Attachments

        Activity

          People

            Unassigned Unassigned
            IamSpazzy Eric Yang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: