An index is necessary on any column or combination of columns that must be unique. However, as discussed in Queries and the Query Optimizer,, the presence of an index can also allow the query optimizer to speed up a query. The optimizer can use an index in the following ways:
As a result, an index on the appropriate column can save thousands, tens of thousands, or in extreme cases, even millions of disk operations during a query. However, indexes entail costs.
Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]