Skip to content
About
Main content
Trade-off

Early binding vs. late binding

When structure is committed; determines where the failure surfaces, at write time or read time.

Where you meet it: schema-on-write vs. read, compile vs. interpret, ID- vs. name-based column resolution, contracts vs. inference.

What it is

Where the schema lives is a choice of early versus late binding. Binding means fixing the meaning of something. Early binding fixes meaning in advance (before reading), which moves cost off the read path and onto the agreement. Late binding fixes meaning at read time and does the reverse. Early binding is the spine of this whole section.

From Interfaces & Formats › Where the schema lives

Every mechanism in this article sits on one dial: early versus late binding, meaning whether a decision is made from the query text (before seeing data) or from the data (after). Static versus dynamic pruning is one position on it. Early versus late materialization is another. Metadata is space bought to save time; statistics written at commit time are precomputation; and on engines that bill by bytes scanned, every byte not read is money.

From Query Planning & Optimization › Late materialization, sampling

A sketch has one more limit, and it has operational teeth: you cannot recover the data from the sketch. Sketching is an early decision about the question. A rollup table of HLL sketches keyed by day and three dimensions has committed you to those dimensions. A fourth dimension means reprocessing the raw data, if you still have it. Sketch-based pre-aggregation trades query cost for the permanent loss of unasked questions, and the bill arrives months later, when someone asks a reasonable question that the pipeline structurally cannot answer.

From Core Data Structures › What probabilistic structures forbid

Where it appears

In 22 mechanisms. Each says what the mechanism is about, then how this trade-off shows up there, in its own words.

Made on the same pages most often.