简体   繁体   English

有序索引与聚集索引

[英]Ordered index vs clustered index

What is the difference between "ordered index" and "clustered index"? “有序索引”和“聚集索引”有什么区别? Is clustered index some variation of ordered index?聚集索引是有序索引的一些变体吗? I know that clustered index defines order in which the data are physically stored in the table.我知道聚集索引定义了数据物理存储在表中的顺序。 But what is "ordered index"?但什么是“有序索引”?

In ordered index, index values are ordered in index data structure, separate from main data.在有序索引中,索引值在索引数据结构中排序,与主数据分开。 Each index value points to a position in data file, which might be ordered by another key or not ordered at all.每个索引值指向数据文件中的一个 position,它可能由另一个键排序或根本不排序。

In clustered index, all records in data file are ordered by the key, not just index data structure.在聚集索引中,数据文件中的所有记录都是按键排序的,而不仅仅是索引数据结构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM