Optimization Suggestion
-----------------------

                 Key: CORE-5683
                 URL: http://tracker.firebirdsql.org/browse/CORE-5683
             Project: Firebird Core
          Issue Type: Improvement
    Affects Versions: 3.0.2, 2.5.7
            Reporter: Stefan Schmaltz


We have a Database with UNICODE_CI and all varchar field have an Index.

So when executing 
SELECT ...WHERE field='value' ... ORDER BY field

the result is fast 

but when executing
SELECT ... WHERE UPPER(field)=UPPER('value') ... ORDER BY UPPER(field)

the result is very slow.

Suggestion: Case Insensitive Index should ignore UPPER (AND LOWER) because 
there is no difference


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to