Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-34993

Incorrect cardinality estimation causes poor query plan

Details

    Description

      Filing this based on investigation in TODO-4922.

      There is a class of known issues one can observe with optimizer_use_condition_selectivity=3 setting. MariaDB 11.0 has a rewrite of relevant code.

      This MDEV is about making a minimal fix to stop pre-11.0 versions from picking very poor query plans.

      Attachments

        Issue Links

          Activity

            Testing done. Ok to push.

            lstartseva Lena Startseva added a comment - Testing done. Ok to push.

            Pushed into 10.5. It would be nice to manually merge to 11.x but currently there's a lot of unmerged stuff which has a lot of conflicts.

            psergei Sergei Petrunia added a comment - Pushed into 10.5. It would be nice to manually merge to 11.x but currently there's a lot of unmerged stuff which has a lot of conflicts.
            marko Marko Mäkelä added a comment - Merged to 11.2

            A quick note about this MDEV:
            This patch is only relevant for 10.5 - 10.11. 11.0 and above does not need it as the selectivity code was already fixed.
            This was taking into consideration by Marko and Sergei when doing the merge to 11.2.

            monty Michael Widenius added a comment - A quick note about this MDEV: This patch is only relevant for 10.5 - 10.11. 11.0 and above does not need it as the selectivity code was already fixed. This was taking into consideration by Marko and Sergei when doing the merge to 11.2.

            Fix pushed to 10.5 tree by Sergei

            monty Michael Widenius added a comment - Fix pushed to 10.5 tree by Sergei

            People

              psergei Sergei Petrunia
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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