Re: strategies for optimizing 'like' operations
From: Bradd Piontek <piontekdd_at_gmail.com>
Date: Fri, 7 Mar 2008 12:51:52 -0600
Message-ID: <e9569ef30803071051r48d93ffax8776a26d73b45d6e@mail.gmail.com>
Date: Fri, 7 Mar 2008 12:51:52 -0600
Message-ID: <e9569ef30803071051r48d93ffax8776a26d73b45d6e@mail.gmail.com>
I'm not sure if these will work, but worth a shot:
1. Combination of a function-based index on UPPER(keyword) (if it doesn't
already exist ) and using SYS_CONTEXT() to make the search look like a bind
variable and possibly use the index. If seen like '%blah%' not use indexes
but like 'blah%' will (selectivity?).
2. Not sure if the REGEXP could help in this case. WHERE REGEXP(UPPER(keyword),'regfexphere'). I haven't played around with how the optimizer treats this.
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Mar 07 2008 - 12:51:52 CST