What are the clusters? What are their advantages?

本文深入探讨了数据库集群的概念,包括其组成、创建方式、集群键的作用以及带来的存储和性能优势。通过实例展示了如何定义一个名为workers的集群,包含特定的集群键department,并解释了这种设计如何提高查询效率并节省存储空间。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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).
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值