As title, I'm using the Regexp_like in my oracle SQL queries, but the performance very bad. I have the following code:
SELECT ID, Name, Department, PhoneNumber, Address
FROM DPT.DP_vEmployee --vEmployee is a view
WHERE ID = :p_ID
AND REGEXP_LIKE(upper(Address), upper(:p_Address));
I filled and run this query, it returned nearly 6s for 484 records. Then, I tried use LIKE operation for this case:
SELECT ID, Name, Department, PhoneNumber, Address
FROM DPT.DP_vEmployee --vEmployee is a view
WHERE ID = :p_ID
AND (upper(address) LIKE upper('%' || :p_address || '%'));
In this case, the result returned 1.5s for 484 records. Althought It reduce a lot but it does not make me satisfied.
Is there any other solution to make it faster?
Thank you!