Database Table Partitioning

[url]http://en.wikipedia.org/wiki/Partition_(database)[/url][quote]常见的为 table 做 partitioning 的策略有:
[b]Range partitioning [/b]
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.
[b]List partitioning [/b]
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.
[b]Hash partitioning [/b]
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.[/quote]

[b]postgresql:[/b]
postgresql支持 Range 和 List 两种方式的 partitioning:
[url]http://www.postgresql.org/docs/9.1/static/ddl-partitioning.html[/url][quote]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.[/quote]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值