Bug #98937 | Functional indexes prevent JOINs to use them | ||
---|---|---|---|
Submitted: | 12 Mar 2020 16:06 | Modified: | 13 Mar 2020 13:37 |
Reporter: | Saverio Miroddi | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S4 (Feature request) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[12 Mar 2020 16:06]
Saverio Miroddi
[13 Mar 2020 13:39]
MySQL Verification Team
Hi Mr. Miroddi, Thank you for your feature request. I find that a feature that you are asking for sounds very interesting. Please, do note that 5.7 is unlikely to get any major new features. Verified as reported.
[27 Oct 2022 11:12]
Rob E
I'd say "JOINs don't use functional key parts" is a bug in MySQL 8.0, not a feature request. Alternatively (but of course less preferred), the documentation should include it as a limitation of functional indexes. ps. The blog post of the author of this bug is quite insightful: https://saveriomiroddi.github.io/An-introduction-to-functional-indexes-in-mysql-8.0-and-th...
[31 Oct 2022 14:19]
MySQL Verification Team
Hi, If one type of index is designed for only one specific purpose, then adding any additional functionality is definitely a feature request.
[31 Oct 2022 14:28]
Rob E
I think I then missed in the documentation that functional indexes are only for that "one specific purpose", should I have derived that from https://dev.mysql.com/doc/refman/8.0/en/create-index.html ?
[3 Feb 2023 21:54]
Jonathan Balinski
Are multi-value indices based on json also functional indexes? I'm seeing the same behavior with joining on a multi-value index. Even with index hints, I can only ever get a full table scan. The same multi-value index works fine when not joining. I'm trying to figure out if this bug report is the root cause of what I am seeing, or if I should try to submit another report.
[6 Feb 2023 14:13]
MySQL Verification Team
Hi, This is not a forum for free support or for asking questions .......
[6 Feb 2023 14:18]
Jonathan Balinski
I was simply trying to avoid a duplicate bug report. I will assume that I’m seeing a separate issue and submit a new report with test cases.
[14 Feb 2023 9:22]
Knut Anders Hatlen
I've filed a documentation bug to clarify the current limitations (bug#110059).
[14 Feb 2023 11:52]
MySQL Verification Team
Thank you, Knut.
[15 Dec 2023 8:41]
Thomas Küstermann
I just ran into this feature request (link: https://stackoverflow.com/q/77661711/5006866). Would it be possible to open https://bugs.mysql.com/bug.php?id=110059 for public, and have this behavior documented?
[15 Dec 2023 12:02]
MySQL Verification Team
Hi Mr. Kustermann, We have verified a separate bug for the documentation to be amended. It is not done yet, so we shall press on that issue.