PostgreSQL bigger != better
Explore Epsio’s insights on PostgreSQL performance in their blog post “PostgreSQL Bigger != Better”. The article delves into why simply scaling up hardware doesn’t always lead to better performance for complex queries. Through TPC-H benchmarks on PostgreSQL 15, Epsio demonstrates that increasing CPU cores beyond a certain point yields diminishing returns, primarily due to default configuration settings limiting parallelism. The post discusses attempts to optimize performance by adjusting parameters like max_parallel_workers_per_gather and using ALTER TABLE SET (parallel_workers=...), highlighting the challenges and limitations encountered. It also touches on how certain SQL constructs, such as CTEs and subqueries, can impede parallel execution, emphasizing the need for careful query design and configuration tuning.
epsio.io