Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> performance of an intersect query
servas!
i have a problem with a query that uses intersect, because sometimes the query take more than 10 seconds.
there are two tables
table 1 : (number integer, title char(255)) (about 250.000 rows)
table 2 : (number integer, word char(16)) (about 7.000.000 rows)
now i'm doing the query:
SELECT number,title from table1 where number in (
SELECT number from table2 WHERE word LIKE 'KEYWORD1%'
INTERSECT
SELECT number from table2 WHERE word LIKE 'KEYWORD2%');
if i run explain plan for such an query the result is:
is there a better solution for that query?
yours
H.
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Nov 23 2000 - 13:04:38 CST