BrainTrust Investment Lab › Band 3 — Loading (Delivering to the Kimball STAR)
BrainTrust Investment Lab

SS13 — Fact Table Builders

← RETURN

Band 3 — Loading (Delivering to the Kimball STAR) · book 473-475 · grain: one fact table per walk sheet

Every fact table declares its grain before a single row loads — one row means exactly one thing, always. The three shapes the book allows are the only three we build, and a row that fits none of them does not load.

completed
0 of 1
running now
fact_price
completedrunningawaiting its turn · owedfailedexcluded
fact_price↻rank 1 · walking · 9 step(s) certified

The contract — what each step must produce

#steppagewhat the book requires
2which of the three, and whyp.473'the three primary types of fact tables: transaction, periodic snapshot, and accumulating snapshot'
3every fact true to the grainp.473'The facts in this transaction table must be true to the grain and should describe only what took place in that instant.'
4partitioned by timep.474'In most cases, the target fact table should be partitioned by time to ease the administration and speed the performance of the table.'
5the load can be resumedp.474'An audit key, sequential ID, or date/time stamp column should be included to allow backup or restart of the load job.'
6insert then delete, never overwritep.474'The first step is to insert the corrected rows without overwriting or deleting the original rows, and then delete the old rows in a second step.'