Sitemap

Member-only story

Data Modeling Patterns for Historical Data

Learning from history

4 min readAug 13, 2023
Press enter or click to view image in full size
Photo by Giammarco Boscaro on Unsplash

Winston Churchill once remarked, “The further back you can look, the farther forward you can see.” He was clearly stressing the importance of learning and understanding history to make better decisions about the present and set the right direction for the future.

The same reason can be applied to maintain historical data in your database. The data history enables the organization:

  1. To meet compliance/audit requirements.
  2. For Data Analysis and Reporting
  3. To identify patterns and track performance.
  4. To recover from accidental data loss or data corruption.

For the above reasons and more, data modeling to maintain historical data is one of the most critical architectural decisions that drive an organization’s efficiency and “data” well-being.

Press enter or click to view image in full size
Photo by Claudio Schwarz on Unsplash

In this article, I will touch upon 2 approaches or techniques to model the historical data:

Use of Temporal Tables

Use of History Tables

Temporal Tables

Gaurav Goel
Gaurav Goel

Written by Gaurav Goel

Storyteller, learner, thinker and a Software Professional dealing with Science and Engineering of Data