Quote:
|
Originally Posted by Peter.Vanroose
So I would say that one should rather look at the typical database use, when deciding to add or drop indexes: e.g., with a read-only database, add as many indexes as possible.
|
That sounds good in theory, but there rarely is a true read only database, since usually the data must be loaded. For large data loads, too many indexes can cause many problems.
Also, even in a true read only database, DB2 might spend more time evaluating the best access path for each query if there were more indexes than are ncecessary. So I would always suggest that one understand when an index will never be used by DB2 (primarily because of low cardinality) and never create those kind of indexes.