Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
10.0.15
-
None
-
Win Server 2008
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
- relates to
-
MDEV-20371 Invalid reads at plan refinement stage: join->positions instead of best_positions
- Closed