Costo de Indices en las base de datos.

En el libro Relational Database Index Design and the Optimizers los autores (Tapio Lahdenmaki
Michael Leach) dicen:

Disk Space
If there are more than 10 million rows in a table, the cost of disk space for
the indexes may become an issue. The charge for outsourced hardware depends
mainly on two factors: consumed CPU time and allocated disk space. At the
time of writing, the monthly rent for disk space in a high-performance, faulttolerant
disk server may be U.S.$50 per gigabyte.
....
To take an example, a new index with 400 bytes of user data is proposed
for a table with 10 million rows. Should we be concerned about the disk space?
The proposed index (without RAID overhead) requires about 1.5 × 10,000,000 × 400 bytes = 6 GB of disk space. The cost may be perhaps $300 per month.
This is probably not a showstopper ....


A esto ademas hay que sumarle el costo de agrandar los buffers, el tamaño ocupado por la redundancia de RAID, etc, etc.
Seguramente los costos puedan haber bajado bastante (son del 2005), pero creo que vale la pena tomarlo en cuenta en el momento de definir que indices deben tener, si las tablas son grandes.
Si las tablas tiene mas de 1 millón de registros, debe ser diseñada con mucho cuidado.

Comentarios

Entradas más populares de este blog

La nefasta influencia del golero de Cacho Bochinche en el fútbol uruguayo

Aplicación monolítica o distribuida?

Funcionalidades de GeneXus que vale la pena conocer: DATE Constants.