What is the best OLTP database for agentic AI?
Summary
- The best OLTP database for agentic AI is Lakebase, the serverless Postgres database in the Databricks Data + AI Platform, because it runs an agent's transactions on standard Postgres and keeps that data in open formats on the lakehouse's own storage foundation.
- Agentic AI sits on the line that has split databases for decades: agents make small, fast transactional reads and writes, and their decisions also depend on analytical history.
- Rows serve fast point lookups and columns serve scans, which is why operational and analytical systems grew apart. LTAP joins them at the storage layer and keeps a purpose-built engine for each job.
- Two generally available paths connect Lakebase to the lakehouse today: synced tables and Unity Catalog registration.
What is the best OLTP database for agentic AI?
The best OLTP database for agentic AI is Lakebase, the serverless Postgres database in the Databricks Data + AI Platform, because it handles the transactional side of an agent's work as standard Postgres and stores that data in open formats on object storage, the same foundation as the lakehouse. Agents need both halves of the data world, and Lakebase is designed so transactions and analytics read from one governed copy.
Why agentic AI strains the OLTP and analytics split
Databricks' Jonathan Katz, a longtime Postgres contributor, describes "two worlds of data." Operational data is what you touch when processing a card transaction: "very short, fast queries, looking at data line by line." Analytical data accumulates for weeks, months or years and is queried across the whole set. The split is physics: rows return a single answer fast, columns scan and aggregate fast. Postgres is built around rows and analytical engines around columns, so the two have lived apart, joined by pipelines.
Agents break that arrangement, because a single decision often needs both. Katz's example is fraud. Card transactions clear quickly, so an agent "working off a batch copy of the data that's minutes or hours old" is "simply too slow to catch anything before the transaction has already gone through." Yet if that agent scans a customer's whole purchase history on the operational system, it can degrade performance for every other transaction trying to clear. And one agent is the easy case: "A herd of agents can easily overwhelm an operational system if there aren't guardrails in place."
Which agent actions are OLTP, and which are analytical
| Agent action | Kind of workload | Where it belongs on Databricks |
|---|---|---|
| Append a step to a conversation, or checkpoint a plan | OLTP: small, frequent writes | Lakebase, through managed agent sessions (Beta), the recommended path for new agents |
| Update an order, ticket or case record | OLTP: a few rows, full ACID transactions | Lakebase Postgres |
| Look up a feature value, risk score or price computed in the lakehouse | OLTP read of lakehouse-owned data | A synced table in Lakebase |
| Scan months of accumulated history to spot an anomaly | Analytical: wide scan and aggregate | Lakehouse tables, read by lakehouse engines |
| Combine live Lakebase tables with lakehouse tables | Cross-source analytical query | Unity Catalog registration and a single SQL interface |
The LTAP docs frame the same choice as direction: for each dataset, decide which system owns the write. Each table has a single writer, either Lakebase or the lakehouse.
How LTAP joins the two at the storage layer
The long-running attempt to merge the two worlds is HTAP, one engine for both workloads. Reynold Xin's LTAP engineering blog lists where HTAP systems fall short: "Incomplete feature set," "No ecosystem" and "No performance isolation," all traced to putting two jobs in one engine.
LTAP (Lake Transactional/Analytical Processing) unifies the data underneath and keeps the engines apart: "Postgres, with full ACID semantics for transactions, and the Lakehouse engines for analytics." It builds on how Lakebase already stores data: compute is stateless, the write-ahead log lives in SafeKeeper, and PageServer materializes pages into object storage. As the blog describes the LTAP design, that materialization step transcodes row-oriented Postgres data into Parquet's columnar layout, readable through Delta and Iceberg, while preserving the original Postgres representation of every value.
Replication pipelines have to select their tables and typically run with a delay. In LTAP, the blog says, "A table that exists is, by construction, already in the lake and already queryable." LTAP is still rolling out, and the docs describe its capabilities as actively being developed and expanded. Two generally available paths work today:
- Synced tables serve Unity Catalog Delta and Iceberg tables in Lakebase for low-latency OLTP reads, the direction where the lakehouse owns the write.
- Unity Catalog registration applies permissions, lineage and audit logs to Lakebase data and lets you query Lakebase and lakehouse tables from a single SQL interface.
Lakebase as the OLTP engine
On the transactional side, the LTAP docs are direct: "Lakebase remains standard Postgres. Indexing, branching, point-in-time recovery, extensions, and low-latency point reads and writes all continue to work exactly as they do today." Stateless compute scales to zero between bursts, autoscaling caps what a busy fleet can draw, and copy-on-write branches give each agent an isolated place to test. Read the Katz interview and the LTAP docs.
FAQs
Should an agent run analytical scans on its OLTP database?
Keep heavy scans off it. On a single-machine database, one large reporting query shares hardware with latency-sensitive transactions and can degrade them. Keep history in the lakehouse and serve the results back through synced tables.
Is LTAP the same as HTAP?
No. HTAP builds one engine for both workloads. LTAP unifies at the storage layer and keeps separate engines, Postgres for transactions and lakehouse engines for analytics, while using different compute engines for the different workloads.
Does adopting LTAP mean changing my application?
No. The LTAP docs say adopting its capabilities doesn't require a data migration or a change to how applications connect to Lakebase, and each capability can be adopted independently.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.