|
|
Re: Min number of rows in a table to get the benefit of index [message #56215 is a reply to message #56193] |
Thu, 13 March 2003 00:07 |
Bhupinder Mohan Singh Kap
Messages: 5 Registered: March 2003
|
Junior Member |
|
|
DEAR SUKRITI,
THERE IS NO MINIMUM NO.OF ROWS PREDIFINED BY ORACLE FOR U TO HAVE A INDEX ON A TABLE...
IDEALLY ORACLE SUGGESTS TAT IF UR SQL STATEMENTS ARE GOING TO RETRIEVE MORE THAN 3 TO 4 % OF TOTAL ROWS IN A TABLE ,ONLY THEN CREATE AN INDEX... BUT AGAIN IF U R HAVING A COST BASED OPTIMISER, IT ENTIRELY DEPENDS ON THE STATISTICS AVAILABLE TO THE OPTIMISER REGARDING THE DISTRIBUTION OF THE RECORDS BASED ON THE KEY COLUMN VALUES, DEPENDING ON WHICH THE INDEX MAY OR MAY NOT BE USED...
I HOPE THIS SERVES UR PURPOSE...
BHUPI
|
|
|