swadhinbiswas added:cookebook for this project · 8/1/2026
ce5d03e
18 lines · 825 Bytes
Raw Download

« Back to Index

Slowly Changing Dimensions (SCD)

SCDs are techniques to manage changes in dimension attributes over time.

SCD Types

  • Type 0: Retain original. No changes allowed.
  • Type 1: Overwrite. Keeps only the latest state. (Simple but loses history).
  • Type 2: Add new row. Tracks full historical changes using effective dates (valid_from, valid_to, is_current).
  • Type 3: Add new column. Tracks only the previous and current state.

Strategy in Air Traffic Platform

For simplicity in this portfolio project, we mostly rely on Type 1 for dim_airport and dim_airline. If an airport name changes, we overwrite it. For highly mutable attributes, we treat them as facts or separate rapidly changing dimensions.


« Back to Index