Skip to content
About
Main content
Model

What clustering can pay

The maximum value clustering can deliver is the unit size in rows. It is also capped by the query's own selectivity.

Unit size
rows per unit (a file or a row group)
Units
number of units, N/G
Selectivity
the fraction of rows the query wants

How it behaves

One input on the horizontal axis, the others held fixed.

G = 10⁶ rows per unitG = 10⁴
Data table
Clustering payoff by selectivity
Selectivity sseriesUnits read: random ÷ clustered
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit1,000,000×
0G = 10⁶ rows per unit794,000×
0G = 10⁶ rows per unit631,000×
0G = 10⁶ rows per unit501,000×
0G = 10⁶ rows per unit398,000×
0G = 10⁶ rows per unit316,000×
0G = 10⁶ rows per unit251,000×
0G = 10⁶ rows per unit200,000×
0G = 10⁶ rows per unit158,000×
0G = 10⁶ rows per unit126,000×
0G = 10⁶ rows per unit100,000×
0G = 10⁶ rows per unit79,400×
0G = 10⁶ rows per unit63,100×
0G = 10⁶ rows per unit50,100×
0G = 10⁶ rows per unit39,800×
0G = 10⁶ rows per unit31,600×
0G = 10⁶ rows per unit25,100×
0G = 10⁶ rows per unit20,000×
0G = 10⁶ rows per unit15,800×
0G = 10⁶ rows per unit12,600×
0G = 10⁶ rows per unit10,000×
0G = 10⁶ rows per unit7,940×
0G = 10⁶ rows per unit6,310×
0G = 10⁶ rows per unit5,010×
0G = 10⁶ rows per unit3,980×
0G = 10⁶ rows per unit3,160×
0G = 10⁶ rows per unit2,510×
0.001G = 10⁶ rows per unit2,000×
0.001G = 10⁶ rows per unit1,580×
0.001G = 10⁶ rows per unit1,260×
0.001G = 10⁶ rows per unit1,000×
0.001G = 10⁶ rows per unit794×
0.002G = 10⁶ rows per unit631×
0.002G = 10⁶ rows per unit501×
0.003G = 10⁶ rows per unit398×
0.003G = 10⁶ rows per unit316×
0.004G = 10⁶ rows per unit251×
0.005G = 10⁶ rows per unit200×
0.006G = 10⁶ rows per unit158×
0.008G = 10⁶ rows per unit126×
0.01G = 10⁶ rows per unit100×
0.013G = 10⁶ rows per unit79.4×
0.016G = 10⁶ rows per unit63.1×
0.02G = 10⁶ rows per unit50.1×
0.025G = 10⁶ rows per unit39.8×
0.032G = 10⁶ rows per unit31.6×
0.04G = 10⁶ rows per unit25.1×
0.05G = 10⁶ rows per unit20×
0.063G = 10⁶ rows per unit15.8×
0.079G = 10⁶ rows per unit12.6×
0.1G = 10⁶ rows per unit10×
0.126G = 10⁶ rows per unit7.94×
0.158G = 10⁶ rows per unit6.31×
0.2G = 10⁶ rows per unit5.01×
0.251G = 10⁶ rows per unit3.98×
0.316G = 10⁶ rows per unit3.16×
0.398G = 10⁶ rows per unit2.51×
0.501G = 10⁶ rows per unit2×
0.631G = 10⁶ rows per unit1.58×
0.794G = 10⁶ rows per unit1.26×
1G = 10⁶ rows per unit1×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴10,000×
0G = 10⁴7,940×
0G = 10⁴6,310×
0G = 10⁴5,010×
0G = 10⁴3,980×
0G = 10⁴3,160×
0G = 10⁴2,510×
0.001G = 10⁴2,000×
0.001G = 10⁴1,580×
0.001G = 10⁴1,260×
0.001G = 10⁴1,000×
0.001G = 10⁴794×
0.002G = 10⁴631×
0.002G = 10⁴501×
0.003G = 10⁴398×
0.003G = 10⁴316×
0.004G = 10⁴251×
0.005G = 10⁴200×
0.006G = 10⁴158×
0.008G = 10⁴126×
0.01G = 10⁴100×
0.013G = 10⁴79.4×
0.016G = 10⁴63.1×
0.02G = 10⁴50.1×
0.025G = 10⁴39.8×
0.032G = 10⁴31.6×
0.04G = 10⁴25.1×
0.05G = 10⁴20×
0.063G = 10⁴15.8×
0.079G = 10⁴12.6×
0.1G = 10⁴10×
0.126G = 10⁴7.94×
0.158G = 10⁴6.31×
0.2G = 10⁴5.01×
0.251G = 10⁴3.98×
0.316G = 10⁴3.16×
0.398G = 10⁴2.51×
0.501G = 10⁴2×
0.631G = 10⁴1.58×
0.794G = 10⁴1.26×
1G = 10⁴1×

Worked examples, recomputed

Every number the mechanisms quote for this relationship is recomputed from it, so none of them disagrees with it.

Where it appears

Each mechanism states it in its own names. The general symbol each name stands for is shown with it.