| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Question on using sql hints (PARALLEL and INDEX_FFS)
Hi,
I want to improve an query by using Sql hints. The actual query is complicated. I narrowed down the situation and found that the key is this query:
select id from blastresults where queryspid =18 and subjspid =18;
it's explain plan is:
ID PA OPERATION OPTIONS OBJECT_NAME POSIT COST
---------- -- ------------------ -------- ---------------- -----
0 SELECT STATEMENT 5441 5441
1 0 TABLE ACCESS BY INDEX BLASTRESULTS 1 5441
2 1 INDEX RANGE SC BLASTRESULTS_SSP 1 728
BLASTRESULTS_SSP is the index on column "subjspid". I created the index by just using "normal" way: (
I want to try parallel scan on index to see if I can improve the speed.
If I put the hints like this , I got the same execution plan:
select /*+ PARALLEL (blastresults,5) IND_FFS (blastresults
BLASTRESULTS_SSPID_INDEX) */
id from blastresults where queryspid =18 and subjspid =18;
ID PA OPERATION OPTIONS OBJECT_NAME POSIT COST
---------- -- ------------------ -------- ---------------- -----
0 SELECT STATEMENT 5441 5441
1 0 TABLE ACCESS BY INDEX BLASTRESULTS 1 5441
2 1 INDEX RANGE SC BLASTRESULTS_SSP 1 728
So my questions are: What should I do so oracle will use "parallel" query option (using multiple cpus) to scan the index?
TIA. Received on Fri Nov 30 2001 - 12:59:38 CST
![]() |
![]() |