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

Subquery not optimized when join is between Aria and InnoDB tables

    XMLWordPrintable

Details

    Description

      See my stack exchange post and answer here for reference:

      http://dba.stackexchange.com/questions/134813/materialized-subquery-not-optimized

      Primary query table uses Aria engine. Subquery uses InnoDB. Query was not optimizing properly and was joining on "index" type. Expecting "eq_ref" type because primary table constraint was using primary key. Changing primary table to InnoDB fixed the issue and used eq_ref as expected.

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              mr.rost Mike
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.