Projection Storage Overhead and Table Size Impact
Full-row projections nearly double storage, while aggregating ones add far less.

MergeTree projections make queries outside the primary key faster by storing another version of the data. Their storage overhead, however, depends sharply on what that version contains. Comparing full rows, selected columns and aggregate states lets engineers weigh query latency against table size, insert work and the cost of future mutations.
What MergeTree projections are and how they store data on disk
A projection is a physically separate, sorted sub-table inside a MergeTree part. Each part has its own corresponding projection sub-part on the same disk volume. The projection stores actual row data or pre-aggregated data, independently of the base table’s sort order. It is another data layout.
The query optimizer can choose a projection when its sort key matches the query’s filter columns and it contains the data the query needs. A full-row normal projection has every column, sorted by a different key. A column-subset normal projection has only the columns named in its definition, while an aggregating projection stores pre-computed aggregate states in place of raw events. Skip indexes work through a different mechanism entirely. They help the reader skip granules within the existing sort order, rather than providing another sorted sub-table to read.
How the type of projection determines the storage multiplier

A full-row projection roughly doubles the table’s on-disk size because every part gains another copy of all its columns. The additional storage is close to 1× the base table’s size. Compression can soften that increase, but not erase it. The base table’s codec also applies to the projection, and the new ordering can improve compression for some columns.
A column-subset projection reduces that footprint by leaving columns out. A projection containing country and duration, for example, does not pay to store every other field in the row. The saving comes with a coverage constraint. Queries needing a column outside the definition cannot use that projection and fall back to the base table. Column selection therefore determines both how much space the projection consumes and which query class can benefit from it.
An aggregating projection changes the row count as well as the stored content. It stores one aggregated row per group rather than one raw row per event, with storage overhead running 5–30% depending on grouping cardinality. Low cardinality makes the reduction especially large. As the number of distinct groups rises, the savings over a full-row projection shrink. For matching queries, this form also delivers the lowest latency in the production benchmarks described in the brief because the engine reads far fewer bytes and performs no aggregation at query time.
A skip index provides the lower-storage point of comparison. It adds about 1–3% to on-disk size by storing coarse summaries, including min/max values or bloom filter hashes. Its pruning is correspondingly less precise than a separate sorted layout. On the same 1.2-billion-row workload, query latency was roughly 1.6 s with a skip index versus 95 ms with a full-row projection.
How replication turns per-projection overhead into a cluster-level multiplier
Every replica stores every projection in full. Storage for the cluster is the size of the base table plus all its projections, multiplied by the number of replicas. For a 50 TB table with one full-row projection and three replicas, each replica stores roughly double the base table’s size, including both the base and projection.
Replication multiplies the added bytes across the cluster, but an already replicated table also had replicated base storage before the projection was added. A team considering three full-row projections in a three-replica cluster should therefore compare the complete before-and-after cluster footprints. Narrower projections may compress better than the base table. That can temper the raw multiple, but it does not remove the need to budget for each replica’s copy.
Write amplification and mutation cost: the operational consequences of projection count
Storage is only the cost of keeping projections. Every insert must also write to each projection, so each added layout takes more work to keep the table up to date. A full sorting projection adds roughly 30–60% to insert overhead compared with writing the base table alone because each inserted part must also be sorted and written in the new key order. Aggregating projections shift some of that work into computing aggregate states. They still require additional CPU, but their smaller writes give them lower net insert overhead than full-row projections.
Mutations can make that maintenance cost more consequential than storage. A DELETE or UPDATE implemented as a MergeTree mutation rewrites the affected parts, including every projection within them. Frequent changes therefore multiply rewrite work across all those layouts. Schema changes that require rebuilding projections, including changes to column types or projection definitions, extend that cost across all parts and replicas. On high-churn tables, the number of projections affects both how well the table runs and how much space it needs.
A common practitioner heuristic is to hold two to three projections per table to keep mutation and merge overhead manageable. That is a guideline for limiting overhead. An unused projection still incurs writes, merges and mutations without delivering a latency benefit. The ad-tech case makes this imbalance tangible, with twelve projections while the optimizer ignored most of them. Justify each maintained layout by the queries it actually accelerates.
How to measure actual projection overhead before and after deployment
To validate that tradeoff, engineers can use system.projection_parts to measure the footprint at the same part level where projections are stored. Each row describes a projection sub-part and gives its compressed and uncompressed byte counts, the names of its parent table and part, and its projection name. Summing bytes_on_disk by projection name gives its disk usage. Dividing that sum by the base table’s total disk usage gives the per-projection overhead ratio. This turns an estimated multiplier into a measurement for the actual data.
Newly inserted parts can make the projection look larger for a while, before merges have run. A useful comparison therefore measures the ratio at steady state, both in pre-deployment evaluation and after deployment. Otherwise, a transient layout can look like a lasting storage problem. The same measurement also shows whether a projection expected to remain narrow is growing closer to a full copy.
Column-level inspection helps explain what the total conceals. system.parts_columns exposes per-column, per-part compressed and uncompressed sizes, which can help identify fields contributing disproportionate storage weight. That evidence supports evaluating a column-subset projection against the query coverage it would lose. Periodic alerts on the overhead ratio then track changes in the relationship between projection and base storage. A rising ratio can signal that a new data pattern is undermining the original cardinality assumption before capacity becomes an incident.
Schema design choices that reduce projection need before adding storage overhead
Before paying for another layout, the first decision is whether the base table’s primary key ordering can serve the query. MergeTree’s sorted storage allows filters on columns early in the key to benefit from primary key pruning at the granule level. Moving a high-selectivity filter column earlier can make queries much faster without the work of keeping another copy of the data. In the test described in the notes, reordering alone produced dramatically faster filtered queries and a modest storage reduction.
The constraint is that the base ordering is global. Moving a column forward may help one query class while hurting another, so an improvement for an occasional query can come at the expense of the dominant path. A projection provides an additional ordering alongside the existing one when moving the needed filter column earlier would cause that damage. This is the clearest reason to accept its storage cost.
A fixed dashboard query pattern is a strong candidate for an aggregating projection because low grouping cardinality can combine a small footprint with very low latency. A column-subset projection can serve a query that needs only selected fields. Full-row projections have a narrower justification than their broad coverage suggests. They fit queries that need many columns and a genuinely different sort key, on tables whose mutation rate leaves the rewrite cost acceptable.
Applying the storage-latency tradeoff to real workload patterns: variable load, agentic queries, and cost-per-query
A projection’s storage cost persists even when queries stop. Its compute benefit, by contrast, depends on how often the matching query runs and how much concurrent demand it serves. On a table busy during business hours but idle overnight, a full-row projection occupies space around the clock while its benefit concentrates in peak windows. That imbalance makes workload timing part of sizing. Aggregating projections can be a better fit for matching analytical patterns because their smaller footprint costs less to retain through idle periods.
A layout that accelerates analytical reads also adds maintenance work to the inserts and mutations feeding the table. The choice therefore depends on both the read and maintenance workloads. A dashboard that gets used often can make pre-computing aggregate states worth the work. The same maintenance burden is harder to defend for an occasional query on a table with frequent changes.
Agentic workloads make speculative coverage especially difficult to justify. AI agents can send many queries that are hard to predict and use different sets of columns, and even with overlapping projections, the optimizer may choose a layout other than the intended one. This resembles the ad-tech case’s mismatch between maintained projections and actual use. Adding layouts for unknown query shapes can accumulate storage and mutation costs without reliable coverage. Isolating agent traffic on dedicated read-only compute instead allows full scans away from shared production compute, without adding projections simply to anticipate the agents.
That isolation also creates a basis for more deliberate schema choices. Full query logging at the column level can expose which fields the agents actually use. A targeted projection or primary key reorder can then follow observed access patterns. Infrastructure changes the storage side of this decision too. With tightly coupled storage and compute, every additional replicated layout consumes provisioned disk, whereas separation shifts the marginal capacity cost toward object storage bytes, typically at a lower unit cost.
Separation does not, by itself, explain how fast reads will be served. ObsessionDB is one option for teams with duplicate copies of tables that have many projections, as it keeps durable data in object storage and serves reads through a cache mesh so cached projection access avoids an S3 round-trip. The distinction separates capacity economics from the read path. BYOC deployments also let teams use the cloud discount agreements they already have for the storage tier that holds projection data. Both arrangements change what it costs to keep the extra bytes, while the work of maintaining projections remains.
Evaluate total cost per answered query over a projection’s useful life. That means adding storage overhead cost, insert overhead cost and mutation overhead cost, then dividing by the number of queries accelerated. A heavily queried aggregating projection has a favorable denominator and a small storage burden, while a speculative full-row projection used twice a week has the opposite profile. Per-query billing shows how often queries run, while flat compute-hour pricing can hide these costs until a storage audit.


