The previous post in this 9-TiB TPC-C PostgreSQL series ended with a direction: keep commit durability, but move persistence work away from the PostgreSQL writer. Here I look at what that architecture looks like in the dashboard, with PostgreSQL and HorizonDB running side by side.
I use the Microsoft PostgreSQL extension for Visual Studio Code. Its Waits, Overview/Metrics, and Queries tabs put backend activity, PostgreSQL counters, and statement statistics next to each other. The interesting part is not just which system completes more transactions. It is what the backends are doing while those transactions execute.
The comparison behind the screenshots
This November 9 measurement reused the two 95,000-warehouse databases, approximately 9 TiB each. Both ran public HammerDB 6.1.1 with the standard, nonpartitioned workload: 512 active workload users, a 15-minute ramp-up, and a 45-minute measurement.
| Configuration | PostgreSQL/Patroni | HorizonDB |
|---|---|---|
| Writer compute | E64bds_v5, 64 vCPUs / 512 GiB | Intel Gen1, 64 vCores |
| Data storage | 20-TiB Ultra SSD, NVMe | Disaggregated, shared storage |
| Shared buffers | 128 GiB (leaving room for OS buffers) | Approximately 362.83 GiB |
Workload synchronous_commit | local with no HA | on for multi-zone HA |
The Ultra SSD was provisioned for 294,800 IOPS and 7,800 MB/s, with data and WAL on the same device to be sure not to be limited by the Premium SSD read ceiling I observed in the first run.
On PostgreSQL, synchronous_commit=local means that commit waits for the primary's WAL to become durable, but not for a standby acknowledgement. Replication remains enabled, asynchronously with respect to the commit response. Automatic Patroni failover was paused for this measurement. I'm deliberately comparing RPO>0 PostgreSQL on zone failure vs RPO=0 HorizonDB to focus on performance without high availability concerns.
In the paired screenshots, PostgreSQL/Patroni is on the left and HorizonDB on the right. The dashboard history includes ramp-up and some time outside the measurement. The HammerDB results below cover the 45-minute measurement.
More transactions with the same number of workers
The transaction and tuple graphs show a much higher level of activity on HorizonDB. Look at the axes as well as the lines: the panels use different vertical scales.
The completed HammerDB runs report:
| Measured throughput | PostgreSQL/Patroni | HorizonDB |
|---|---|---|
| New Orders Per Minute (NOPM) | 47,651 | 436,132 |
| PostgreSQL Transactions Per Minute (TPM) | 110,037 | 1,003,592 |
That is 9.15x the NOPM in this pair of runs. NOPM is the workload's completed new-order rate. PostgreSQL TPM comes from database transaction counters. The dashboard's System - 10s transaction chart at the top left displays activity per collection interval, not the final HammerDB NOPM result.
With the same 512 workload users, the higher throughput means that those workers get through more work rather than spending as much time queued behind shared resources. The Waits tab shows where that difference becomes visible.
PostgreSQL queues behind WAL writes
The left wait stack is dominated by PostgreSQL lightweight locks. On the right, the largest band is an extension wait associated with HorizonDB storage reads.
These are selected rows from the displayed ranking:
| Wait event | PostgreSQL/Patroni | HorizonDB |
|---|---|---|
LWLock:WALWrite | 80.4% | 14.9% |
LWLock:BufferContent | 10.0% | 0.5% |
IO:DataFileFlush | 4.4% | N/A |
IO:DataFileRead | 3.2% | N/A |
Extension:HorizonDB_Storage_Read | N/A | 63.3% |
LWLock:WALInsert | 0.2% | 9.8% |
The percentages are shares of sampled backend observations in that dashboard history, not a transaction-latency breakdown. Its CPU category likewise is not host CPU utilization.
LWLock:WALWrite is a lock wait, not a direct measurement of disk-write duration. PostgreSQL serializes WAL writing and synchronization through this lock. While one backend performs that work, many other backends can wait for the lock before checking whether their own WAL position is already durable. Group commit lets a flush cover several transactions, but the waiting sessions still depend on that flush completing.
This explains why a slow WAL synchronization path can appear as hundreds of lock waiters rather than hundreds of sessions directly reporting an I/O wait. The separate 10-second capture inside the measured windows found an average of 426 active client backends at WALWrite on PostgreSQL, versus 79 on HorizonDB.
The WAL counters also report an average synchronization time of 29.79 ms per sync on PostgreSQL, versus 2.10 ms on HorizonDB. These are means of the reported WAL synchronization operations, not transaction commit latencies. They describe different persistence paths: a native local WAL flush on one side and the service's WAL durability path on the other.
Removing standby acknowledgement waiting therefore did not remove PostgreSQL's main queue. The primary still had to persist WAL locally.
Why the faster system still shows storage-read waits
HorizonDB_Storage_Read is the leading visible wait on the faster system. That identifies a page-request path and does not, by itself, identify an exhausted disk IOPS budget.
The HorizonDB storage architecture separates WAL servers from page servers. WAL servers specialize in low-latency log operations. Data pages are sharded across page servers, and a filtering service sends each shard the WAL relevant to its pages. Storage capacity and servicing work are not concentrated behind the writer's one attached data disk.
This is scale-out storage underneath one writer, not distributing these write transactions across multiple nodes. Requests still have latency, and a backend waiting for a page response exposes that latency as an extension wait. Once the large WAL queue is reduced, the read path occupies a larger share of the remaining observations. A leading read wait can coexist with much higher throughput.
On native PostgreSQL, DataFileRead is only 3.2% of the displayed observations. Together with the provisioned Ultra SSD budget, that shows why this comparison is no longer primarily about the original read-device ceiling. Reads remain work to do, but WAL serialization dominates this native run. Asynchronous replica acknowledgement also removes the standby wait from its commit path.
More WAL records, fewer WAL bytes
The next screenshot contains a useful apparent contradiction: HorizonDB produces many more WAL records, but fewer WAL bytes.
The bottom row is the important one here. WAL Bytes Written represents generated WAL bytes per collection interval, not physical disk bandwidth.
Counter differences over approximately 2,693 seconds inside each measured window give:
| WAL metric | PostgreSQL/Patroni | HorizonDB |
|---|---|---|
| Generated WAL | 327.22 GiB | 173.69 GiB |
| WAL generation rate | 124.42 MiB/s | 66.04 MiB/s |
| WAL records | 193,342,220 | 1,605,838,664 |
| Full-page images | 80,977,418 | 9,714,339 |
| Mean bytes per WAL record | 1,817 | 116 |
HorizonDB generates approximately 8.3 times as many records while producing about half the bytes. Dividing the generation rates by the reported PostgreSQL TPM gives an approximate 69.47 KiB versus 4.04 KiB of WAL per reported transaction, about 17.2x less on HorizonDB. That normalization includes background WAL and uses the nearby counter interval, so it is a workload-level indicator.
Why torn-page protection changes WAL volume
A PostgreSQL data page is normally 8 KiB. Writing it is not necessarily one crash-atomic operation through the filesystem and storage stack. A crash during a write can leave a mixture of old and new page contents: a torn page.
Normal WAL records describe changes to a page. Recovery needs a valid page on which to apply those changes. To protect against a torn page, PostgreSQL normally includes a full-page image on the first modification of that page after a checkpoint. WAL containing the recovery information must be durable before the data page is written. The PostgreSQL full-page-writes explanation describes this ordering.
On a large, write-heavy database, touching many different pages after checkpoints adds substantial image traffic to the log. Compression reduces the image bytes, but it does not remove the need to generate and process that protection.
The captured settings were:
| Setting | PostgreSQL/Patroni | HorizonDB |
|---|---|---|
full_page_writes | on | off |
wal_compression | zstd | lz4 |
HorizonDB can move that responsibility because its page servers protect against torn pages. As described in the storage design, compute persists changes through WAL and the storage layer reconstructs and persists data pages. PostgreSQL compute does not have to log the usual full-page images to protect its own durable data-file overwrites.
The protection has moved into storage, not been discarded. An Ultra SSD upgrade alone does not make that architectural change, and turning off full_page_writes on conventional storage is not the equivalent.
The HorizonDB image counter is still nonzero: full_page_writes=off does not prohibit every operation from emitting a page image. Also, wal_fpi counts images, not their compressed bytes. What the measurements show directly is much lower image frequency relative to WAL records and much lower WAL volume for the transactional work performed.
That reduces the amount of data entering the WAL persistence path. Combined with a purpose-built WAL service, it explains the direction of the throughput difference much better than the phrase "faster disks."
Checkpoint counters do not mean the same physical I/O
The same screenshot shows checkpoint activity on both systems. The retained measured-window counters report 3 requested checkpoints on PostgreSQL and 16 on HorizonDB, and 3,420,969 versus 150,107,572 checkpointer buffers written.
Those larger HorizonDB buffer counters do not contradict offloaded persistence. The dashboard exposes PostgreSQL engine activity, while the service changes how durable page storage is implemented. They cannot be converted into an equivalent number of physical writes to a compute-attached SSD.
In native PostgreSQL, the checkpointer and background writer write durable relation pages through the primary's filesystem and storage path. In HorizonDB, durable data-page writing and recovery belong to the page servers. Checkpoint-related coordination and buffer activity can remain visible on compute without recreating the native data-file persistence path.
Cache hits are another part of the picture
The top row shows cache-hit ratios high on both sides, with more buffer activity on HorizonDB. The shared-buffer configurations are different: 128 GiB versus approximately 362.83 GiB.
HorizonDB also has a compute-local NVMe SSD cache, adding another tier before remote page storage. PostgreSQL's buffer-cache-hit graph is not a measurement of that SSD cache's hit rate. A page absent from shared buffers is not automatically a remote storage read, and a small SSD-cache wait share does not count how many quick cache hits occurred.
The read-side explanation therefore includes both a different cache hierarchy and a distributed page-serving layer. It is not simply that the two systems read the same pages from different SSD models.
Higher throughput is not a uniform query-latency multiplier
The Queries tab gives another view of the workload. These snapshots were taken around 18:30-18:31 CET, before the final throughput result.
PostgreSQL:

HorizonDB:

Selected displayed means are:
| Statement label | PostgreSQL/Patroni | HorizonDB |
|---|---|---|
neword | 91 ms | 31 ms |
payment | 8 ms | 5 ms |
slev | 165 ms | 143 ms |
delivery | 63 ms | 68 ms |
ostat | 2 ms | 3 ms |
New-order execution has a substantially lower displayed mean, as does payment. Delivery and order-status do not. These are statement-entry means from the displayed statistics history, with all databases and users selected, rather than the final HammerDB measurement.
The prepare neword ... labels identify pg_stat_statements entries. They do not mean that the displayed duration is merely SQL preparation overhead. Total statement time sums concurrent execution: HorizonDB can show more total hours while also showing a lower mean and many more calls.
This is why I read throughput, waits, WAL, and query statistics together. Higher system throughput does not require every statement to be faster by the same factor. Reducing a heavily shared persistence queue changes how much work the whole workload can complete.
The architectural difference is visible
The earlier posts followed successive limits: data reads, WAL synchronization, and shared-buffer contention. This comparison returns to locally durable commits on native PostgreSQL, with Ultra SSD storage and no standby acknowledgement wait, and observes the two systems together.
The dashboard tells a consistent story:
- PostgreSQL still concentrates sessions behind WALWrite, even after the read-storage upgrade and removal of replica acknowledgement waiting.
- HorizonDB generates much less WAL for much more transactional work, consistent with moving torn-page protection out of PostgreSQL's normal full-page logging.
- The visible wait mix shifts toward page requests and remaining WAL coordination, supported by a larger buffer cache, an SSD cache, and scale-out page storage.
- Checkpoint activity remains visible, but durable data-page persistence is no longer the writer's native filesystem work.
HorizonDB keeps WAL as the durable record of changes, while dedicated storage services handle log durability, replication, and page materialization. The writer does less persistence work, and less image-associated WAL enters its critical path.
The 9.15x NOPM is the measured outcome of this pair. The screenshots make the architectural explanation concrete: not just more IOPS, but less work concentrated on the PostgreSQL writer.




