Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> What index is prefered?
Hi all,
Could you please help me in increasing performance of my queries?
I have a table with near 15 fields: one of date type,
one of number type (my value field)
and all others of integer type (Foreign Keys) .
The size of this table is longer than 200,000 records.
The most often queries I need are like:
Performance is very important!!!!!!!!! But I have problems with it!!!
QUESTIONS:
1) What are the prefered indexes?
What is better: to make many single indexes (one single index per each
field)
OR to make one compound index containing all fields
OR both?
2) How to deal with DateField in case of using compound index?
(because I use "<=", not "=" comparing). Is it a good idea to put this field the first field in the index? Or to make compound index without DateField and to make another single index for DateField? 3) How should I use hints for these queries?
Now I try to use /*+ INDEX (Mytable MyCompoundIndex) */ Is it anything better?
ORACLE 8.0.5. Thank you in advance.
Oleg
Moscow,
Russia
Received on Mon Aug 09 1999 - 02:25:09 CDT