NEW
Divides data into table partitions by contiguous ranges of a chosen partition key.
DESCRIPTION
Range partitioning organizes large tables or indexes into segments defined by continuous intervals of a partitioning key, such as date or numeric ranges. It improves query performance through partition pruning and can simplify data lifecycle operations like retention or archiving. Common in analytical databases and data warehouses, range partitioning supports time-based workloads and rolling window maintenance. Appropriate key selection and balanced ranges help avoid data skew and hotspots.
ALTERNATIVE DEFINITIONS
Oracle
Range partitioning maps data to partitions based on ranges of column values.
Highlights mapping rows to partitions using value intervals and supports partition pruning.
PostgreSQL
A range partitioned table is partitioned into ranges defined by a key.
Emphasizes declarative partitioning and pruning at planning and execution.
MySQL
Range partitioning assigns rows to partitions based on column values falling within a given range.
Shows syntax and examples using integer and date-based ranges.
RELATED TERMS
Shard Partition Pruning Indexing Partitioning Composite Partitioning Data Skew Shard Key Clustered Index
COMPETING TERMS
Hash Partitioning List Partitioning
RELATIONS
- Broader: Partitioning
KNOWLEDGE AREAS
Data Storage & Operations Data Engineering Data Architecture Data Warehousing & BI Data Modeling
TARGET AUDIENCE
Data Engineer Data Architect Data Modeler Cloud Architect Software Developer
EXTERNAL SOURCES
- Wikipedia - Partition (database)
- Oracle - Oracle Partitioning overview and strategies
- PostgreSQL - Declarative partitioning guide
- MySQL - Partitioning types in MySQL
- Microsoft - SQL Server partitioned tables
TOP QUESTIONS
When should Range Partitioning be used in a data warehouse?
Use range partitioning when queries commonly filter on ordered keys like dates or numeric intervals. It enables pruning and improves performance on time-series and rolling window workloads.
Category: Requirements
What is a common mistake with Range Partitioning?
Choosing uneven ranges causes data skew and hotspots. Poorly designed boundaries lead to unbalanced partitions, hurting parallelism and maintenance operations.
Category: Mistakes
How does Range Partitioning improve performance?
Partition pruning eliminates irrelevant partitions during planning or execution. It reduces I/O and speeds queries that filter on range predicates of the partition key.
Category: Example
What are alternatives to Range Partitioning?
Hash partitioning balances load across partitions, while list partitioning targets discrete values. Composite strategies combine methods to match access patterns.
Category: Alternatives
How is Range Partitioning managed over time?
Admins add, merge, or drop partitions to implement retention and rolling windows. Automation ensures new ranges exist before data arrives.
Category: Management
What is the risk of using Range Partitioning incorrectly?
Misaligned ranges lead to performance regressions and maintenance complexity. It can also increase overhead when queries rarely use the partition key.
Category: Risks
Why is Range Partitioning popular for time-series data?
Time is naturally ordered and lends itself to contiguous intervals. It simplifies retention and enables efficient pruning for date-based filters.
Category: Relevancy
How do partition keys impact Range Partitioning effectiveness?
Keys should align with dominant query predicates and distribution. Bad key choices cause skew and reduce pruning benefits.
Category: Requirements
What tools support Range Partitioning?
Most major databases support it, including Oracle, PostgreSQL, MySQL, and SQL Server. Cloud warehouses also provide similar features with automation.
Category: Overview