Buscar
Estás en modo de exploración. debe iniciar sesión para usar MEMORY

   Inicia sesión para empezar


Por supuesto:

SQL , Database Interview

» Iniciar este curso
(Practica preguntas similares gratis)
Pregunta:

In your projects, do you use clustered indexes or nonclustered indexes, and why?

Autor: Lock Huynh



Respuesta:

I use both clustered and nonclustered indexes, depending on the situation. I typically use a clustered index on a table's primary key or another column where data is often retrieved in a specific order, as it determines the physical order of the data and speeds up range queries. For nonclustered indexes, I use them on columns frequently searched or filtered but not necessarily sorted. This allows for quick lookups and efficient data retrieval without altering the physical order of the table. The combination of both types of indexes helps optimize query performance based on the specific needs of the application


0 / 5  (0 calificaciones)

1 answer(s) in total