Considerations
Before creating indexes, consider how the indexed items are used in your implementation. Some pros and cons are shown below:
Pros | Cons |
---|---|
Excellent for reads. | Write performance is impacted (data is duplication). |
Query execution runtimes are significantly reduced. | More disc space is required (for duplicate data). |
Table joins are significantly reduced. | Great potential for deadlock during write operations. (More data in one row as opposed to separate rows within separate tables.) |
Item order in the definition of the index is important because if the operation does not use the first item, the index is skipped. |
Attributes that have associated rules cannot be included in an index.