Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Context Optimization
I'm using context, which i'm fairly new at.
I have multiple contains() statements in a single query. If i use AND to
separate them, the query takes mere miliseconds (which is what i really
want) but if i separate with or, it takes about 12 seconds, which
strikes me as odd. without the contains() statements, it takes mere
miliseconds as well.
Can anyone help me with optimizing it as EXPLAIN PLAN doesn't recognize
contains()?
this query WORKS it just seems to take an abnormal ammount of time to
work.
the query is as follows...
select
tab_forum.for_name, tab_question.for_id, tab_question.qtn_id, tab_question.cus_id, tab_question.qtn_subject, tab_answer.ans_value, tab_answer.exp_id, tab_answer.ans_id,
tab_forum, tab_question, tab_answer, tab_billing
and tab_question.qtn_id = tab_answer.qtn_id and tab_answer.ans_id = tab_billing.ans_id and tab_question.qtn_private = 2 and tab_billing.bill_expertscore >= 1 and tab_billing.bill_expertscore <= 10 and tab_forum.for_id in
tab_question.for_id, tab_question.qtn_id, tab_question.cus_id, tab_question.qtn_subject, tab_answer.ans_value, tab_answer.exp_id, tab_answer.ans_id
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Dec 22 1999 - 13:24:35 CST
![]() |
![]() |