| Bug #104670 | NO_SKIP_SCAN hint disables skip scan for all indexes | ||
|---|---|---|---|
| Submitted: | 19 Aug 2021 23:00 | Modified: | 11 Jul 2022 23:07 |
| Reporter: | Manuel Ung | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
| Version: | 8.0.26 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[19 Aug 2021 23:00]
Manuel Ung
[20 Aug 2021 4:41]
MySQL Verification Team
Hello Manuel Ung, Thank you for the report and feedback. Verified as described. regards, Umesh
[11 Jul 2022 23:07]
Jon Stephens
Documented fix as follows in the MySQL 8.0.31 changelog:
When a NO_SKIP_SCAN hint referred to a specific index not to be
used for a table skip scan, all the other possible indexes were
also ignored, and thus a skip scan was not used for any indexes on
the table.
This occurred because processing was not performed for all
possible keys for a skip scan if the NO_SKIP_SCAN hint was not
applicable to all indexes.
Closed.
