Skip to main content

Partitioning

How Partitioning Works

The following table shows how the records are partitioned using the hypothetical IntegerPartition with 1-2-3-4-5-6 bits of partitioning width. The leftmost column indicates the level. Other cells are the partitions of that level. Numbers in the cells indicate the partitioning key range that are rolled-up in the partition.

L60-63
L50-3132-63
L40-1516-3132-4748-63
L30-78-1516-2324-3132-3940-4748-5556-63
L20-34-78-1112-1516-1920-2324-2728-3132-3536-3940-4344-4748-5152-5556-5960-63
L10-12-34-56-78-910-1112-1314-1516-1718-1920-2122-2324-2526-2728-2930-3132-3334-3536-3738-3940-4142-4344-4546-4748-4950-5152-5354-5556-5758-5960-6162-63

If we currently have 21 records already rolled-up, these are the partition that we will have. If we were to perform a query, the framework will combine the highlighted partitions to get the result:

L6
L5
L40-15
L30-78-15
L20-34-78-1112-1516-19
L10-12-34-56-78-910-1112-1314-1516-1718-1920-21