With a clustered index the rows are stored physically on the disk in the same order as the index.
(使用聚集索引时,行将以与索引相同的顺序物理存储在磁盘上。)
Therefore, there can be only one clustered index. (因此,只能有一个聚簇索引。)
With a non clustered index there is a second list that has pointers to the physical rows.
(使用非聚集索引时,第二个列表具有指向物理行的指针。)
You can have many non clustered indices, although each new index will increase the time it takes to write new records. (您可以有许多非聚集索引,尽管每个新索引都会增加写入新记录所需的时间。)
It is generally faster to read from a clustered index if you want to get back all the columns.
(如果要取回所有列,通常从聚集索引中读取会更快。)
You do not have to go first to the index and then to the table. (您不必先进入索引,然后再进入表。)
Writing to a table with a clustered index can be slower, if there is a need to rearrange the data.
(如果需要重新排列数据,则写入具有聚集索引的表的速度可能会变慢。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…