Database Table Partitioning
程序员文章站
2022-05-25 10:11:04
...
http://en.wikipedia.org/wiki/Partition_(database)
引用
常见的为 table 做 partitioning 的策略有:
Range partitioning
Selects a partition by determining if the partitioning key is inside a certain range. An example could be a partition for all rows where the column zipcode has a value between 70000 and 79999.
List partitioning
A partition is assigned a list of values. If the partitioning key has one of these values, the partition is chosen. For example all rows where the column Country is either Iceland, Norway, Sweden, Finland or Denmark could build a partition for the Nordic countries.
Hash partitioning
The value of a hash function determines membership in a partition. Assuming there are four partitions, the hash function could return a value from 0 to 3.
Range partitioning
Selects a partition by determining if the partitioning key is inside a certain range. An example could be a partition for all rows where the column zipcode has a value between 70000 and 79999.
List partitioning
A partition is assigned a list of values. If the partitioning key has one of these values, the partition is chosen. For example all rows where the column Country is either Iceland, Norway, Sweden, Finland or Denmark could build a partition for the Nordic countries.
Hash partitioning
The value of a hash function determines membership in a partition. Assuming there are four partitions, the hash function could return a value from 0 to 3.
postgresql:
postgresql支持 Range 和 List 两种方式的 partitioning:
http://www.postgresql.org/docs/9.1/static/ddl-partitioning.html
引用
The following forms of partitioning can be implemented in PostgreSQL:
Range Partitioning
The table is partitioned into "ranges" defined by a key column or set of columns, with no overlap between the ranges of values assigned to different partitions. For example one might partition by date ranges, or by ranges of identifiers for particular business objects.
List Partitioning
The table is partitioned by explicitly listing which key values appear in each partition.
Range Partitioning
The table is partitioned into "ranges" defined by a key column or set of columns, with no overlap between the ranges of values assigned to different partitions. For example one might partition by date ranges, or by ranges of identifiers for particular business objects.
List Partitioning
The table is partitioned by explicitly listing which key values appear in each partition.
推荐阅读
-
bootstrap table 数据表格行内修改的实现代码
-
Oracle Table Demo语句应用介绍
-
Microsoft JET Database Engine 错误 '80004005' 未指定的错误的完美解决方法
-
用div实现像table一样的布局方法
-
Table 组件构建过程中遇到的问题与解决思路
-
C#实现的Table的Merge,以及实现Table的Copy和Clone
-
使用表类型(Table Type-SqlServer)实现百万级别的数据一次性毫秒级别插入
-
vue element table 表格请求后台排序的方法
-
JS 组件系列之Bootstrap Table的冻结列功能彻底解决高度问题
-
JS 组件系列之Bootstrap Table 冻结列功能IE浏览器兼容性问题解决方案