Bug #9639 | Index on columns with functon aplied. | ||
---|---|---|---|
Submitted: | 5 Apr 2005 10:09 | Modified: | 6 Oct 2008 13:15 |
Reporter: | Jan Klopper | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: General | Severity: | S4 (Feature request) |
Version: | OS: | Any (any) | |
Assigned to: | CPU Architecture: | Any |
[5 Apr 2005 10:09]
Jan Klopper
[5 Apr 2005 11:45]
Jan Klopper
The functions on which this should be possible are functions that are deterministic (eg who give the same result very time, for the field in question) Since we can add a length to an index to only index the first x chars, this becomes obsolete if you can use substr like functions on the data, which would also allow for substrs on the end or center of the string.
[1 Jul 2008 3:04]
Igor Minar
There are so many projects out there (drupal, confluence, ..) that are/were faced with performance issues and are forced to come up with workarounds in order to get decent performance from MySQL. All of this just because a simple thing like "SELECT id FROM users WHERE lower(username) = ?" can't use db index created on the username column. Postgres and some other major dbms support indexing of functions, please make MySQL belong to the group of dbms that doesn't give developers headaches because of this.
[6 Oct 2008 13:15]
Valeriy Kravchuk
This is a duplicate of bug #17496.