Hej!
Jag läser i en gammal manual till Oracle 8 följande och får några tankegångar i mitt huvud:
”Indexes improve the performance of queries that select a small percentage of rows from a table. As a general guideline, you should create indexes on tables that are often queried for less than 2% or 4% of the table's rows. This value may be higher in situations where all data can be retrieved from an index, or where the indexed columns can be used for joining to other tables.”
Varför är rekommendationen ”less than 2%”. Varför spelar det någon roll hur många procent av tabellens rader som väljs ut?
Varför skulle procentsatsen kunna tillåtas vara högre ”where all data can be retrieved from an index”, vad spelar det för roll?
Tacksam för svar!
Mvh,
Kristian