テーマ: data-warehouse
-
緩やかに変化するディメンション:上書き、行追加、列追加
顧客の転居や商品の再分類などでディメンション属性が変わると、タイプ 1 は上書きして履歴を失い、タイプ 2 は新しい代理キーの下に有効開始日・終了日・現在行フラグを持つ行を追加し、タイプ 3 は追加列に以前の値を保持する。スナップショットツールは、実行ごとに更新時刻または列の集合を比較してタイプ 2 を実装する。
-
Star schema basics: facts, dimensions and declaring the grain
A star schema stores measurements in fact tables and descriptive context in dimension tables linked by keys; the design starts by declaring the grain, what one fact row represents, because every measure and dimension must be consistent with it. Fully additive measures sum across any dimension, semi-additive ones not across time, and ratios must be stored as their components.
機械可読: JSON