NEW
Also known as: Temporal Querying
Capability to query prior states of data, reconstructing views as-of specific points in time for analysis, recovery, and auditing.
DESCRIPTION
Time travelling enables querying historical versions of data to recreate past states or analyze changes over time. Implementations include system-versioned tables, snapshot isolation, or storage-layer features like Delta Lake and Snowflake Time Travel. It supports debugging, post-incident analysis, regulatory audits, and point-in-time reporting. Design choices involve retention windows, storage costs, and governance of access to deleted or superseded data. Bitemporal patterns track both valid-time and transaction-time for richer historical context.
ALTERNATIVE DEFINITIONS
Snowflake
Time Travel enables accessing historical data (data that has been changed or deleted) at any point within a defined period.
Highlights recovery of changed or deleted data within a retention window.
Databricks
Delta Lake time travel allows you to query an older snapshot of a Delta table.
Focuses on snapshot-based querying in the lakehouse storage layer.
RELATED TERMS
Temporal Tables Bitemporal Modeling System-Versioned Tables Delta Lake Snowflake Time Travel Point-in-Time Recovery Lineage Snapshotting
COMPETING TERMS
Slowly Changing Dimension Change Data Capture
KNOWLEDGE AREAS
Data Engineering Data Warehousing & BI Data Storage & Operations Data Management
TARGET AUDIENCE
Data Engineer Data Architect Data Modeler BI Specialist Data Analyst MLOps Engineer
EXTERNAL SOURCES
- Wikipedia - Temporal database
- Microsoft - SQL Server system-versioned temporal tables
- MariaDB - System-versioned tables documentation
- Delta Lake - Delta Lake features including time travel
TOP QUESTIONS
What is Time Travelling in data systems?
It’s the ability to query historical versions of data, enabling as-of analyses, point-in-time reporting, and recovery after accidental changes or deletes.
Category: Definition
Why use Time Travelling instead of SCD Type 2?
Time travel provides storage-layer versioning for flexible queries, whereas SCD Type 2 encodes history in schema; both can complement each other.
Category: Comparison
How is Time Travelling implemented?
Approaches include system-versioned tables, snapshotting, append-only storage with transaction logs, and features like Snowflake Time Travel or Delta Lake.
Category: Implementation
What are the retention considerations for Time Travelling?
Retention windows balance audit needs and storage cost; longer windows increase cost and risk exposure of sensitive historical data.
Category: Management
What risks come with Time Travelling?
Risks include unauthorized access to deleted data, higher storage costs, and complexity in managing data retention and legal holds.
Category: Risks
How does Time Travelling support compliance?
It enables reproducible reports and audit trails, helping demonstrate data lineage and integrity for regulatory requirements.
Category: Compliance
Is Time Travelling expensive?
Costs depend on retention period, data change rates, and storage format; compaction and vacuum policies mitigate overhead.
Category: Costs
Can Time Travelling handle schema changes?
Yes, with schema evolution and versioned metadata; however, querying across versions may require compatibility handling.
Category: Practice
What queries are common with Time Travelling?
As-of joins, differential analyses between versions, rollback validations, and reconstructing incident timelines are typical.
Category: Examples