Home » Server Options » Text & interMedia » speed up 'like' queries - Oracle Text API? (Oracle Database 10g Release 10.2.0.3.0, Windows Server 2003)
speed up 'like' queries - Oracle Text API? [message #331092] Wed, 02 July 2008 05:23 Go to previous message
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
 
Read Message
Read Message
Read Message
Previous Topic: Displaying search results from table and CTX_DOC.SNIPPET - Returning error messages (merged by bb)
Next Topic: Merge columns from dif tables in one index and markup the result
Goto Forum:
  


Current Time: Thu Apr 18 23:15:09 CDT 2024