Details

    Description

      Subquery hints affect whether to use semijoin transformations and which semijoin strategies to permit, and, when semijoins are not used, whether to use subquery materialization or IN-to-EXISTS transformations.

      Syntax of hints that affect semijoin strategies:

      hint_name([@query_block_name] [strategy [, strategy] ...])
      

      The syntax refers to these terms:

      • hint_name: These hint names are permitted:
      • SEMIJOIN, NO_SEMIJOIN: Enable or disable the named semijoin strategies.
      • strategy: A semijoin strategy to be enabled or disabled. These strategy names are permitted: DUPSWEEDOUT, FIRSTMATCH, LOOSESCAN, MATERIALIZATION.

      For SEMIJOIN hints, if no strategies are named, semijoin is used if possible based on the strategies enabled according to the optimizer_switch system variable. If strategies are named but inapplicable for the statement, DUPSWEEDOUT is used.

      For NO_SEMIJOIN hints, if no strategies are named, semijoin is not used. If strategies are named that rule out all applicable strategies for the statement, DUPSWEEDOUT is used.

      See MySQL documentation for details.

      Worklog #8244 may be also useful.

      Attachments

        Issue Links

          Activity

            oleg.smirnov Oleg Smirnov added a comment -

            The final version is in the branch

            bb-opt-hints-1

            .

            oleg.smirnov Oleg Smirnov added a comment - The final version is in the branch bb-opt-hints-1 .

            pushed into bb-11.8-MDEV-35504-opt-hints for buildbot to know the branch so that it could use correct builders

            serg Sergei Golubchik added a comment - pushed into bb-11.8- MDEV-35504 -opt-hints for buildbot to know the branch so that it could use correct builders
            oleg.smirnov Oleg Smirnov added a comment -

            Pushed a new branch bb-11.8-MDEV-35504-opt-hints-v2 including the most recent commits to main.

            oleg.smirnov Oleg Smirnov added a comment - Pushed a new branch bb-11.8- MDEV-35504 -opt-hints-v2 including the most recent commits to main .

            People

              lstartseva Lena Startseva
              oleg.smirnov Oleg Smirnov
              Votes:
              1 Vote for this issue
              Watchers:
              6 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.