speed up 'like' queries - Oracle Text API? [message #331092] |
Wed, 02 July 2008 05:23 |
smora
Messages: 59 Registered: May 2006
|
Member |
|
|
Hi
I have a table with sub_id, sub_username fields. To search for usernames, there is a query that uses the
sub_username like '%XXX%'
clause. This is extremely slow even with an index on the sub_username field, the table has ~2 million rows. Can this be speeded up somehow?
I looked into using Oracle Text API, but that seems to be for searching for a single word or phrase within a document, whereas I need to speed up searches on a column that contains a single word as its value.
Any help is appreciated.
SM
|
|
|