A cluster contains data from one or more tables. All these tables have one or more columns in common. All the rows from all the tables that share the same cluster key.
Example: cluster named workers with the cluster key column department, a cluster size of 512 bytes, and storage parameter values
CREATE CLUSTER workers
(department NUMBER(4))
SIZE 512
STORAGE (initial 100K next 50K);
Advantages:
- Clusters can speed up join queries.
- Storage is saved since storing the field or fields comprising the Cluster Key are stored once instead of multiple times.
- Clustering does not does not affect the relational model (table schemas).
本文深入探讨了数据库集群的概念,包括其组成、创建方式、集群键的作用以及带来的存储和性能优势。通过实例展示了如何定义一个名为workers的集群,包含特定的集群键department,并解释了这种设计如何提高查询效率并节省存储空间。
1493

被折叠的 条评论
为什么被折叠?



