From Correct To Production-Grade
A production model is judged by behavior — bytes read, tasks skewed, rows double-counted, partitions rewritten — not by how the diagram looks.
A model can be perfectly correct on a whiteboard and still fall over in production. The earlier chapters made this model right; this chapter runs it — one retail sales star, under load, retries, backfills and a budget.
Step through the six questions below. Each is a topic in this chapter, and each has a failure attached to skipping it.
A production model is judged by behavior — bytes read, tasks skewed, rows double-counted, partitions rewritten — not by how the diagram looks.
Production is where models earn their keep. The gap between a junior and a senior modeler is usually here: not in drawing tables, but in knowing what the drawing does at volume, on a retry, and at 3am.
- partitioning
- Splitting a table by a key (usually date) so queries scan only relevant slices.
- append-only fact
- A fact table written by inserts only, never in-place updates, the key to fast ingest.
- idempotent load
- A load that can be re-run without double-counting, via natural-key dedupe.
Validating a model only by its diagram, never by its production behavior. It looks right but is slow at volume, double-counts on reloads, or loses late data; behavior is the real test.
Design partitioning and load behavior alongside the schema.
Make every fact load append-only and idempotent.
Plan for late facts and late dimensions from day one.
Correctness is necessary and not sufficient. Everything in this chapter is a question the diagram cannot answer.
Earlier chapters made the model correct; this one makes it production-grade — partitioned, retry-safe, backfillable, and sized for the scale you actually have.
