Details

    Description

      Implement the new-style hints:

      INDEX_MERGE
      NO_INDEX_MERGE
      

      in a way compatible to MySQL.
      MySQL's Work Log: https://dev.mysql.com/worklog/task/?id=9167

      Attachments

        Issue Links

          Activity

            psergei Sergei Petrunia created issue -
            psergei Sergei Petrunia made changes -
            Field Original Value New Value
            Component/s Optimizer [ 10200 ]
            psergei Sergei Petrunia made changes -
            Labels hints
            psergei Sergei Petrunia made changes -
            Fix Version/s 12.0 [ 29945 ]
            psergei Sergei Petrunia made changes -
            Description Implement the new-style hints:
            {code}
            INDEX_MERGE
            NO_INDEX_MERGE
            {code}
            psergei Sergei Petrunia made changes -
            Description Implement the new-style hints:
            {code}
            INDEX_MERGE
            NO_INDEX_MERGE
            {code}
            Implement the new-style hints:
            {code}
            INDEX_MERGE
            NO_INDEX_MERGE
            {code}

            in a way compatible to MySQL.
            MySQL's Work Log: https://dev.mysql.com/worklog/task/?id=9167
            psergei Sergei Petrunia made changes -
            ralf.gebhardt Ralf Gebhardt made changes -
            Labels hints Compatibility hints mysql
            Gosselin Dave Gosselin made changes -
            Assignee Dave Gosselin [ JIRAUSER52216 ]
            Gosselin Dave Gosselin made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            Gosselin Dave Gosselin added a comment - - edited

            Both our code and the referenced MySQL work log mention not only index merge but also others (like index_merge_union). Judging from our code, it appears that codepaths where some index_merge_* optimizer switch is used are gated by the index merge option itself (as though it is a top-level switch) so it appears sufficient for the new hint to affect only index merge, and the others will either be enabled or disabled accordingly. Testing will bear it out and I'll update accordingly.

            Gosselin Dave Gosselin added a comment - - edited Both our code and the referenced MySQL work log mention not only index merge but also others (like index_merge_union). Judging from our code, it appears that codepaths where some index_merge_* optimizer switch is used are gated by the index merge option itself (as though it is a top-level switch) so it appears sufficient for the new hint to affect only index merge, and the others will either be enabled or disabled accordingly. Testing will bear it out and I'll update accordingly.
            serg Sergei Golubchik made changes -
            Fix Version/s 12.1 [ 29992 ]
            Fix Version/s 12.0 [ 29945 ]
            Gosselin Dave Gosselin made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            julien.fritsch Julien Fritsch made changes -
            julien.fritsch Julien Fritsch made changes -

            People

              Gosselin Dave Gosselin
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.