Bug #94296 | Poor Optimizer Performance with Composite Index, IN() function, and many Tuples | ||
---|---|---|---|
Submitted: | 12 Feb 2019 18:17 | Modified: | 13 Feb 2019 19:41 |
Reporter: | Daniel Jeffery | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S5 (Performance) |
Version: | 8.0.11 | OS: | Ubuntu (Ubuntu 16.04.1 LTS) |
Assigned to: | CPU Architecture: | x86 (x86_64) | |
Tags: | composite_index |
[12 Feb 2019 18:17]
Daniel Jeffery
[12 Feb 2019 18:18]
Daniel Jeffery
Example SELECT queries (5000 tuples)
Attachment: tupleQueries.sql (application/octet-stream, text), 332.32 KiB.
[12 Feb 2019 20:40]
MySQL Verification Team
Could you please try version 8.0.15. Thanks.
[13 Feb 2019 18:23]
Daniel Jeffery
Upgrading to 8.0.15 resolved the issue - thank you Miguel! To verify, I increased the size of my test table to 30000 rows, and queried with 1000 and 10000 tuples; performance will favour the indexed query at 1000 tuples, and the loss of performance at 10000 tuples is no longer significant enough to concern me.
[13 Feb 2019 19:41]
MySQL Verification Team
Thank you for the feedback.