Cluster Table
来源:互联网 发布:android 7.0 java 编辑:程序博客网 时间:2024/05/16 23:36
对簇表来说,总是要先创建簇段(cluster segment)。然后将表关联到cluster segment里。由此可知,簇表也是虚拟表,没有对应的segment,簇表对应的是cluster segment。有两种类型的簇表:索引簇表和哈希簇表。索引簇表中,簇上面必须有一个索引。其主要用于总是进行主明细表关联查询的表,主表和明细表根据关联字段,将数据同时放入同一个簇数据块里,也就是一个数据块存放了两个表的记录。这样的话,当我们两表关联查询时,只需要扫描一个数据块就可以了。
创建簇表的实例如下:
create cluster orders(orderno number);create index idx_orders on cluster orders;
create table order_master(orderno number,customerid number,createdate date) cluster orders(orderno);
create table order_item(orderno number,productid number,qty number) cluster orders(orderno);
在哈希簇表中,则是在将表的记录插入簇段的时候,对簇所在的列运用哈希函数,从而得到该记录所在的数据块的位置。哈希簇不能像索引簇那样关联多个表,我们只能将一个表关联到哈希簇上。
其创建命令如下:
create cluster phones_customer(phone_no number) hashkeys 100000 size 50;
create table phones(phone_no number,name varchar2(10)) cluster phones_customer(phone_no);
上面的命令中hashkeys表示phone_no的值最多不超过100000.对于每个hashkeys值所对应的所有记录行来说,在segment头部都会有一块空间,来存放这些数据行的地址。而size就表示了每个hashkeys所能使用的空间的大小,在上例中,该空间为50个字节。
- CLUSTER TABLE
- Cluster Table
- 【DDIC】关于Cluster table以及Table Cluster
- what is cluster table?
- 表簇(table cluster)
- postgresql cluster table
- Transprant table / Pooled table / Cluster table
- 关于cluster table(簇表)BSEG
- 关于cluster table(簇表)BSEG
- What is a cluster table?
- 关于cluster table(簇表)BSEG
- 关于cluster table(簇表)BSEG
- PostgreSQL cluster table using index
- Table Pool / Table Cluster 中的参数含义
- transparant table, pooled table, cluster table的区别
- 聚簇(Cluster)和聚簇表(Cluster Table)
- Oracle中Cluster Table的使用
- 索引聚簇表ICT测试(Index Cluster Table)
- Hibernate的主键生成策略学习笔记
- java 解析Excel 工具类 (支持2003&2007)
- window2003 iis下 无法识别 MP4 解决方法
- Android 自动 打包
- 第三届蓝桥杯C++本科B组决赛解题报告(更新中)
- Cluster Table
- SpringSecutirity 好的学习网站
- Android中Cursor关闭的问题
- oracle 执行脚本报错: 此处不允许序号
- 记录安装配置django postgresql
- WZSZF 整站源码,原来就是DISCUZ。
- Android的View详解
- 排序命令: sort, wc, uniq
- [linux_shell]linux下设置ls命令显示文件、文件夹颜色