May 2019
Intermediate to advanced
484 pages
11h 23m
English
It's important to consider how the database is going to be used when creating indexes. While indexes improve the cost of data-access queries, they may increase the cost of queries that modify the data. Whenever we insert or update data in a table, that data must also be inserted or modified in the indexes on that table, which takes extra time and generates more I/O.
For Online Transaction Processing (OLTP) databases that have a mix of reads and writes, we will need to balance the needs of the read workload with the write workload. Avoid over-indexing tables and/or columns that are heavily updated. Tables that are not frequently updated may be able to support more indexes, but we need to consider queries when ...
Read now
Unlock full access