You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Ari Maniatis (JIRA)" <ji...@apache.org> on 2014/01/27 03:13:37 UTC

[jira] [Commented] (CAY-1210) mysql does not use index for case insensitive searches

    [ https://issues.apache.org/jira/browse/CAY-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13882511#comment-13882511 ] 

Ari Maniatis commented on CAY-1210:
-----------------------------------

Dima, is this task all done other than adding some testing to Jenkins? If so, I think we should close the issue.

> mysql does not use index for case insensitive searches
> ------------------------------------------------------
>
>                 Key: CAY-1210
>                 URL: https://issues.apache.org/jira/browse/CAY-1210
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Database integration
>            Reporter: Ari Maniatis
>            Assignee: Ari Maniatis
>              Labels: 3.1-review
>             Fix For: 3.1 (final)
>
>         Attachments: case-insensitive-search.patch, case-insensitive-search.patch
>
>
> When performing a case insensitive search Cayenne spits out SQL which looks like this
> SELECT .... WHERE upper(name) LIKE upper("fred")
> This prevents any index being used for the search. Since mysql already performed case insensitive searches on text fields we need to suppress the 'upper' functions being used in these situations. All searches on these fields are already case insensitive.
> http://dev.mysql.com/doc/refman/5.0/en/case-sensitivity.html



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)