Article’s

Effect of B-Tree and Composite Indexes on Read Latency, Write Cost, and Storage in PostgreSQL Under Concurrent Load

Likith H S, Manoj H K, Manoj M T, Mukthikanth P

(12 – 2026)

DOI: 10.5281/zenodo.24738951

 

Secondary database indexes accelerate selective retrieval queries but introduce write maintenance overhead and additional storage consumption. This empirical study evaluates the trade-offs between read latency, write throughput, and disk footprint across three indexing configurations in PostgreSQL 18.6 using a 1 ,000,000-row synthetic event dataset. Three configurations were benchmarked: a baseline primary-key-only schema, a single-column B-tree index on user identifier, and a twocolumn composite B-tree index on user identifier and creation timestamp. Using the standard PostgreSQL benchmarking utility under 10, 50, and 100 concurrent client connections across read-only, write-only, and 90% read / 10% write mixed workloads, 105 timed 30-second trials were executed. Relative to the unindexed baseline, both secondary indexes reduced mean read latency by more than 99.8% across all concurrency levels and improved mixed-workload throughput by over 115,600%. The composite index eliminated explicit sorting and outperformed the single-column index by 15.7% in mean read latency at 10 clients and 8.2% at 50 clients. Conversely, single-column and composite indexes reduced write throughput by 8.3% and 11 .1 % at 10 clients and consumed 15.3% and 52.4% of base table storage, respectively. These results quantify concurrency-dependent indexing trade-offs for time-ordered event workloads.

 

 

Scroll to Top