Prepared Statements Get Incorrect Optimizer Plan When prefer_ordering_index Is Enabled.
(Doc ID 2810114.1)
Last updated on SEPTEMBER 27, 2021
Applies to:
MySQL Server - Version 8.0 and laterInformation in this document applies to any platform.
Symptoms
Prepared statements execute slower and with different optimizer plan to non-prepared statements.
With non-prepared statements, EXPLAIN shows Extra: Backward index scan.
With prepared statements, EXPLAIN shows Extra: Using filesort
Changes
Upgraded to 8.0.23 thru 8.0.25.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |