DatabricksSergey MelnikExplainer
Dispelling LTAP myths
Summary
LTAP keeps one durable copy of each table in the lake, with heap pages and indexes as caches in front of it, not a second database. CDC creates a second database with its own catalog and timeline that can drift; LTAP has no second table to keep in step. Two lossless encodings of the same rows serve different access paths: heap pages for point lookups and Parquet for scans, with values Parquet cannot represent losslessly traveling in an overflow field. Every analytical query reads a consistent snapshot by asking Postgres for the current LSN, reading materialized data from object storage up to that LSN, and merging remaining pages from the pageserver. Logical replication reads every change from the WAL and carries state via replication slots, while LTAP parallelizes pages, not log records, and commits one Iceberg snapshot of current pages.
Context
Reynold Xin’s earlier post ‘From monolith to Lakebase to LTAP’ introduced LTAP (Lakehouse Transactional and Analytical Processing) and the Lakebase architecture: one governed copy of operational data serving both Postgres and analytics, with no CDC pipeline and no second database. Commentators raised four myths: that LTAP is CDC under another name, that a single copy forces either slow lookups or slow scans, that Iceberg or Delta tables on object storage are inherently stale, and that Postgres logical replication already provides the extraction path.
Approach / What changed
Lakebase stores one durable copy of each table in the lake, with heap pages and indexes as caches in front of it. Writes are durable when the WAL reaches a quorum of safekeepers; the pageserver applies the log, keeps hot pages in memory and on local disk, and materializes data into object storage. Reads start at the compute node (buffer cache and local file cache); uncached pages come from the pageserver. For analytical queries, the system asks Postgres for the current LSN, reads materialized data from object storage up to that LSN, and merges remaining pages from the pageserver. The columnar copy (Parquet behind Delta or Iceberg) is the durable store; heap pages become a cache of it. Each access path reads the format that suits it: point lookups hit heap pages, scans hit Parquet.
Takeaways
LTAP keeps one durable copy of each table in the lake; heap pages, indexes, and caches are tiers of that single database, not replicas with their own catalog or timeline.
Two lossless encodings of the same rows serve different access paths: heap pages for point lookups and Parquet for scans, with values Parquet cannot represent losslessly traveling in an overflow field.
Logical replication reads every change from the WAL and carries state via replication slots; LTAP parallelizes pages, not log records, and commits one Iceberg snapshot of current pages.
FAQ
Is LTAP just CDC under a new name?
No. LTAP keeps one durable copy of each table in the lake. The layers in front of it (heap pages, indexes, caches) hold some of the same bytes to make that table durable and fast, but none is a second database. CDC creates a second database with its own catalog and timeline that can drift; LTAP has no second table to keep in step.
Does a single copy force slow lookups or slow scans?
No, because two lossless encodings of the same rows can serve different access paths: heap pages for point lookups and Parquet for scans. Values that Parquet cannot represent losslessly travel in an overflow field. The columnar copy is the durable store; heap pages become a cache of it. Each query reads the format that suits it.
Are Iceberg tables on object storage inherently stale?
No. Every analytical query reads a consistent snapshot. Commits that haven't reached the lake yet are read from the pageservers, so nothing committed before the query is missed. The query asks Postgres for the current LSN, reads materialized data from object storage up to that LSN, and merges the rest from the pageserver.
Source and freshness
- Source
- databricks.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.