一个分区键应该包括一至三个列。
有包含相同数量的列的分区键。
分区键中不应该包括不必要的列。
Unnecessary columns should not be included in the partitioning key.
假设父表和子表有不同的分区键。
Suppose the parent and child tables have different partitioning keys.
分区键的相应列是分区兼容的。
Have the corresponding columns of the partitioning key be partition compatible.
分区键应该包括最常连接的列。
The partitioning key should include the most frequently joined columns.
通常表分区键是基于时间的列。
Usually the table partitioning key will be a time-based column.
如下的规则和建议适用于分区键定义
The following rules and recommendations apply to the partitioning key definition
为何选择正确的分区键如此重要
在定义分区键时,应考虑以下几点
The following points should also be considered when defining partitioning keys
另外,分区键仍然必须基于关系数据。
In addition, the partitioning key must still be based on relational data.
该定义中使用的列被称为表分区键列。
The columns used in this definition are referred to as the table partitioning key columns.
分区键定义后,就不能更改。
不恰当的分区键可能导致数据分布不均匀。
An inappropriate partitioning key can cause uneven data distribution.
分区键的定义不能修改。
TP只对那些包括表分区键列的查询有利。
TP will only benefit those queries that include the table partitioning key column.
验证现有表上的分区键。
在设计一个网格时,您需要仔细选择分区键。
When designing a grid, you need to choose your partition key carefully.
在保持表的可访问性的情况下如何更改分区键?
How to change partitioning keys while keeping the table fully accessible?
在这些情况下,建议您基于数据平衡选择分区键。
In such cases, it is recommended that you choose a partitioning key based on even data balancing.
新例程用来评估已有的和新的分区键的数据倾斜。
New routines to estimate data skews for existing and new partitioning keys.
一个分区键由在表创建时定义的一个或多个列组成。
A partitioning key consists of one or more columns defined at table creation.
可帮助您评估新的和已有分区键的数据倾斜的例程。
Routines that can help you estimate the data skew for new and existing partitioning keys.
分区键应该由常用于GROUPBY子句的列组成。
The partitioning key should be made up of columns that often participate in a GROUP BY clause.
这个输入参数指定要被用在数据倾斜估算中的新分区键。
This input parameter specifies the new partitioning keys to be used in the estimation of data skews.
应用分区散列算法的代价与分区键的规模成比例。
The cost of applying the partitioning hash algorithm is proportional to the size of the partitioning key.
在一个非分区数据库中,不需要分区键或分区映射。
In a non-partitioned database, no partitioning key or partitioning map is required.
选择正确的分区键之所以如此关键,有两方面的原因。
Choosing the right partitioning key is critical for two reasons.
整型分区键要比字符键高效,而字符键又比小数键高效。
An integer partitioning key is more efficient than a character key, which is more efficient than a decimal key.
应用推荐