collection Commons
Private · saved on this device

Time & history

Data engineering patterns for time & history.

Explore 15 field-guide articles on time & history. Each article develops a concrete problem, explains the design response, and discusses examples and limits.

Event Sourcing makes accepted events authoritative and derives state through replay. Its primary home is Persistence and Transactions in Software Engineering; its history perspective remains relevant here.

Curated selection

In this Collection

15 entries · Author-defined order
  1. Data Engineering

    pattern · commons

    Accumulating Snapshots

    Keep one row per process instance and update its milestones as work progresses, making completion status and elapsed times easier to analyze.

  2. Data Engineering

    pattern · commons

    As-of Joins

    Match each observation to a reference record using an explicit time-relative rule, such as the latest eligible version at or before the observation.

  3. Data Engineering

    pattern · commons

    Bitemporal Records

    Track when information applies in the business and when the system recorded it, supporting queries with separate business-time and knowledge-time cutoffs.

  4. Data Engineering

    pattern · commons

    Effective-Dated Records

    Store when a value or rule applies in the business, supporting historical lookups and scheduled changes independently of when the record was saved.

  5. Data Engineering

    pattern · commons

    Half-Open Time Intervals

    Include an interval’s start and exclude its end, so adjoining periods share a boundary without counting that instant twice.

  6. Data Engineering

    pattern · commons

    Historical Restatement

    Recalculate previously reported periods when evidence or rules change, publishing identifiable revisions while retaining enough history to explain earlier reports.

  7. Data Engineering

    pattern · commons

    Hybrid Slowly Changing Dimensions

    Combine dimension-history techniques so the same measurements can be grouped by both historical attributes and current classifications, with each perspective explicit.

  8. Data Engineering

    pattern · commons

    Inferred Dimension Members

    Create a stable placeholder for a known entity before its descriptive details arrive, then complete that same member without changing the facts’ reference.

  9. Data Engineering

    pattern · commons

    Keep Previous Values — SCD Type 3

    Keep a previous attribute value beside the current value for limited comparison, accepting that older changes and complete event-time history are not preserved.

  10. Data Engineering

    pattern · commons

    Mini-Dimensions

    Move frequently changing profile attributes into a separate table of combinations, and let each fact record the profile observed at its event.

  11. Data Engineering

    pattern · commons

    Overwrite Attributes — SCD Type 1

    Replace an attribute in its existing dimension row when the model needs the corrected or current value, accepting that earlier classifications are overwritten.

  12. Data Engineering

    pattern · commons

    Periodic Snapshots

    Record measurements at regular intervals, making historical balances and trends available while keeping each period’s observations distinct from business events.

  13. Data Engineering

    pattern · commons

    Recorded-Time History

    Preserve when the system recorded each version, so earlier queries can reproduce what that system knew at a chosen cutoff.

  14. Data Engineering

    pattern · commons

    Retain Original Values — SCD Type 0

    Preserve an attribute’s defined original value for stable baseline analysis, distinguishing the verified business starting point from the first value a pipeline happened to observe.

  15. Data Engineering

    pattern · commons

    Version Dimension Rows — SCD Type 2

    Preserve successive descriptions as separate dimension rows with validity intervals, linking each fact to the appropriate version for historical reporting.