Very poor "similar to" performance
----------------------------------

                 Key: CORE-5854
                 URL: http://tracker.firebirdsql.org/browse/CORE-5854
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 3.0.3
            Reporter: Sergey Borisov


--This simple query take more than 16 secs of execution:
select iif ('abc.abc' similar to '[[:ALPHA:].]{1,60}.ab' ,1,0) is_similar from 
rdb$database

--Then add one more symbol to text, and execution take more then 2 MINUTES!!!
select iif ('abcd.abc' similar to '[[:ALPHA:].]{1,60}.ab' ,1,0) is_similar from 
rdb$database

If the test string is even longer than 4 symbols, then the server hangs forever!

-- 
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