Tune this "contains" query in Oracle 11g EE 11.2.0.3.0
932383Nov 14 2012 — edited Nov 20 2012I have a query like below. It runs for ever. The size of this table is not very big, it has around 30 millions rows. The owner column is very selective, and I've added "owner' column in the "filter by" clause of the domain index against description. Do you have any recommendation how I can tune this query? Any help would be greatly appreciated.
select count(*) from items s where contains(s.description, '%111%' ) > 0 and s.owner = 1234;
Thanks.