---
title: "One for the Treble, Two for the Time"
description: "Bitemporal modelling lets an immutable, append-only ledger like TigerBeetle correct past mistakes: record every fact as soon as it is learned, tagged with both a recorded timestamp and an effective timestamp."
url: "https://swe.quest/articles/one-for-the-treble-two-for-the-time-c03cd49395ab2de8"
canonical: "https://tigerbeetle.com/blog/2026-01-14-bitemporality"
source: "TigerBeetle"
published: "2026-01-14"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 5
tags: ["payments","time-clocks","databases","event-driven"]
---

# One for the Treble, Two for the Time

A post on [TigerBeetle](https://swe.quest/sources/tigerbeetle.md), published 2026-01-14, 5 min read, Deep dive. Original: [https://tigerbeetle.com/blog/2026-01-14-bitemporality](https://tigerbeetle.com/blog/2026-01-14-bitemporality)

## Summary

Bitemporal modelling lets an immutable, append-only ledger like TigerBeetle correct past mistakes: record every fact as soon as it is learned, tagged with both a recorded timestamp and an effective timestamp. The recording layer never changes history, and the reporting layer projects what was believed at any point versus what is believed now. A worked example of a mispriced lunch between two people shows how to compute the delta between the two views and post balancing transfers to an Adjustments account. This keeps an append-only audit trail while still fixing errors.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)
- [Time & clocks](https://swe.quest/tags/time-clocks.md) (Distributed systems)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)

## Prerequisites

- double-entry accounting basics
- append-only data models

## Keywords

TigerBeetle, bitemporality, Temporal Patterns, Martin Fowler

## Related posts

- [Birth and death of a row in Turso's MVCC](https://swe.quest/articles/birth-and-death-of-a-row-in-turso-s-mvcc-f60b68028888940e.md): Turso · 2026-10-19 · Hard · 14 min read · Storage engines, SQLite, Consistency models, Databases
  Turso's MVCC, modeled on Hekaton, tracks each row as a chain of versions in a lock-free SkipMap, with begin/end fields holding a TxId while a transaction is active and a commit timestamp once it commits.
- [Rediscovering Transaction Processing From History and First Principles](https://swe.quest/articles/rediscovering-transaction-processing-from-history-and-first-principles-7a5a2c6c3ea0ae42.md): TigerBeetle · 2024-07-23 · Easy · 9 min read · Databases, Consistency models, Payments & fintech, Performance engineering, System design
  General-purpose OLTP databases hit a hard throughput ceiling on debit/credit workloads because row locks are held across multiple network round-trips, and hot rows such as a few internal accounts serialize nearly every transaction.
- [Change Data Capture in SQLite, Without the Triggers](https://swe.quest/articles/change-data-capture-in-sqlite-without-the-triggers-241b82cfb5d25e99.md): Turso · 2026-11-05 · Medium · 8 min read · SQLite, Event-driven architecture, Data pipelines, Caching
  Turso Database, a Rust rewrite of SQLite, has built-in change data capture enabled with a single PRAGMA.
- [Introducing Change Data Capture for SQLite in Turso](https://swe.quest/articles/introducing-change-data-capture-for-sqlite-in-turso-c6756296fac94071.md): Turso · 2025-07-16 · Medium · 5 min read · SQLite, Event-driven architecture, Databases
  Turso's SQLite rewrite gains an unstable, built-in Change Data Capture feature enabled per connection via PRAGMA unstable\_capture\_data\_changes\_conn.
- [The Write Last, Read First Rule](https://swe.quest/articles/the-write-last-read-first-rule-6fa0042a5ce38b5c.md): TigerBeetle · 2025-11-06 · Medium · 8 min read · Consistency models, Distributed systems, Payments & fintech, Resilience, TypeScript
  When an application spans two stores without a shared transaction boundary, such as Postgres for account master data and TigerBeetle for the ledger, one must be designated the system of record and the other the system of reference.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
