CLUSTER INDEX
来源:互联网 发布:决战之后 知乎 编辑:程序博客网 时间:2024/05/21 11:24
当索引值唯一时,使用聚集索引查找特定的行也很有效率,定义聚集索引键时使用的列越少越好
可考虑将聚集索引用于:
包含大量非重复值的列。
使用下列运算符返回一个范围值的查询:BETWEEN、> 、> =、 < 和 <=。
被连续访问的列。
返回大型结果集的查询。
经常被使用联接或 GROUP BY 子句的查询访问的列;一般来说,这些是外键列。对 ORDER BY 或 GROUP BY 子句中指定的列进行索引,可以使 SQL Server 不必对数据进行排序,因为这些行已经排序。这样可以提高查询性能。
OLTP 类型的应用程序,这些程序要求进行非常快速的单行查找(一般通过主键)。应在主键上创建聚集索引。
聚集索引不适用于:
频繁更改的列
这将导致整行移动(因为 SQL Server 必须按物理顺序保留行中的数据值)。这一点要特别注意,因为在大数据量事务处理系统中数据是易失的。
宽键
来自聚集索引的键值由所有非聚集索引作为查找键使用,因此存储在每个非聚集索引的叶条目内。
- CLUSTER INDEX
- cluster index in sqlserver
- Cluster Index和Noncluster Index的区别
- PostgreSQL cluster table using index
- 使用索引(Index)和簇(Cluster)
- 索引聚簇表ICT测试(Index Cluster Table)
- tokudb分区表建立cluster index报错
- 聚簇索引(cluster index) 和非聚簇索引(nonCluster index)
- CLUSTER INDEX 聚簇索引(以postgre 数据库为例)
- admin_move_table的重组机制验证(cluster index)
- cluster
- Cluster
- cluster
- Cluster
- Cluster
- ES报错dangling index, exists on local file system, but not in cluster metadata, auto import to cluster
- HBaseCon 2013: Using Coprocessors to Index Columns in an Elasticsearch Cluster
- Index
- java中两大异常:空指针异常和数组越界异常
- django中的csrf
- jquery右键菜单
- 研磨struts2 第二章 Struts 2的HelloWorld
- 我是一个菜鸟
- CLUSTER INDEX
- ubuntu中如何去除鼠标
- Linux多线程编程(不限Linux)
- 小四川#TPP#谭平平越南游记谭之三 自由自在的越南渔民
- 2012春节上海各客票代售点火车票预售期进行调整
- 扣指礼有讲究
- (笔记)jquery 获取页面高宽
- HTML5的五大优秀功能
- java ssl连接AD域总结