Clustered Index vs Non-clustered index

In a clustered index, the physical order of the rows in the table matches the order of the index. When you query based on the clustered index key, the database can quickly locate the rows because they are stored in sorted order.

In a non-clustered index, the physical order of the rows in the table does not match the order of the index. Non-clustered indexes contain pointers to the actual rows in the table.

When a query is issued against a column on which the index is created, the database will first go to the index and look for the address of the corresponding row in the table. It will then go to that row address and fetch other column values. It is due to this additional step that non-clustered indexes are slower than clustered indexes.

Last updated