Skip to content

Tag: Performance

  • The Cognitive Price Revolution: AI's Impact on the Economy and the Future

    By Ruohang Feng In AI 3040 words 15 min

    Ruohang FengAICostPerformanceRepository

    The Cognitive Price Revolution: AI's Impact on the Economy and the Future

    Introduction: Reframe the Question “Will AI cause unemployment?” is a question guaranteed to produce garbage answers, because it comes with only two canned scripts. Optimists recite history: from the power loom to the ATM, every technological panic …

    Introduction: Reframe the Question “Will AI cause unemployment?” is a question guaranteed to produce garbage answers, because it comes with only two canned scripts. Optimists recite history: from the power loom to the ATM, every technological panic …

  • Scaling Postgres to the next level at OpenAI

    By Bohan Zhang In Database 2708 words 13 min

    Bohan ZhangPostgreSQLCodexPerformanceArchitecture

    Scaling Postgres to the next level at OpenAI

    At PGConf.Dev 2025, Bohan Zhang from OpenAI shared a session titled Scaling Postgres to the next level at OpenAI, giving us a peek into the database usage of a top-tier unicorn. “At OpenAl, we’ve proven that PostgreSQL can scale to support massive …

    At PGConf.Dev 2025, Bohan Zhang from OpenAI shared a session titled Scaling Postgres to the next level at OpenAI, giving us a peek into the database usage of a top-tier unicorn. “At OpenAl, we’ve proven that PostgreSQL can scale to support massive …

  • Optimize Bio Cores First, CPU Cores Second

    By David Heinemeier Hansson (DHH) In Database 2081 words 10 min

    David Heinemeier Hansson (DHH)Software EngineeringPerformanceDatabaseTranslation

    Optimize Bio Cores First, CPU Cores Second

    Optimize Bio Cores First, Silicon Cores Second A big part of the reason that companies are going ga-ga over AI right now is the promise that it might materially lower their payroll for programmers. If a company currently needs 10 programmers to do a …

    Optimize Bio Cores First, Silicon Cores Second A big part of the reason that companies are going ga-ga over AI right now is the promise that it might materially lower their payroll for programmers. If a company currently needs 10 programmers to do a …

  • PostgreSQL's Impressive Scalability

    By Ruohang Feng In PGSQL 2161 words 11 min

    Ruohang FengPostgreSQLPerformanceTranslation

    PostgreSQL's Impressive Scalability

    Source: How Cloudflare Supports 55M QPS with 15 PostgreSQL Clusters In July 2009, in California, USA, a startup team created a Content Delivery Network (CDN) called Cloudflare to accelerate internet requests, making network access more stable and …

    Source: How Cloudflare Supports 55M QPS with 15 PostgreSQL Clusters In July 2009, in California, USA, a startup team created a Content Delivery Network (CDN) called Cloudflare to accelerate internet requests, making network access more stable and …

  • PostgreSQL Macro Query Optimization with pg_stat_statements

    By Nikolay Samokhvalov In PGSQL 4334 words 21 min

    Nikolay SamokhvalovPostgreSQLPG AdminPerformance

    PostgreSQL Macro Query Optimization with pg_stat_statements

    In production online databases, slow queries not only affect end-user experience but also waste system resources, increase resource saturation, cause deadlocks and transaction conflicts, increase database connection pressure, and lead to master-slave …

    In production online databases, slow queries not only affect end-user experience but also waste system resources, increase resource saturation, cause deadlocks and transaction conflicts, increase database connection pressure, and lead to master-slave …

  • How Powerful is PostgreSQL Really?

    By Ruohang Feng In PGSQL 2308 words 11 min

    Ruohang FengPostgreSQLPG EcosystemPerformance

    How Powerful is PostgreSQL Really?

    Previously, we analyzed StackOverflow survey data to explain “Why PostgreSQL is the Most Successful Database”. This time we’ll let performance data speak for itself, discussing just how powerful the most successful PostgreSQL really is, helping you …

    Previously, we analyzed StackOverflow survey data to explain “Why PostgreSQL is the Most Successful Database”. This time we’ll let performance data speak for itself, discussing just how powerful the most successful PostgreSQL really is, helping you …

  • A Methodology for Diagnosing PostgreSQL Slow Queries

    By Ruohang Feng In PGSQL 349 words 2 min

    Ruohang FengPostgreSQLPG AdminPerformance

    A Methodology for Diagnosing PostgreSQL Slow Queries

    “You can’t optimize what you can’t measure.” Slow queries hog connections, hold locks, block replication, trigger deadlocks, and waste resources. Every DBA must know how to find and fix them quickly. Traditional tools pg_stat_statements – essential …

    “You can’t optimize what you can’t measure.” Slow queries hog connections, hold locks, block replication, trigger deadlocks, and waste resources. Every DBA must know how to find and fix them quickly. Traditional tools pg_stat_statements – essential …

  • Using sysbench to Test PostgreSQL Performance

    By Ruohang Feng In PGSQL 298 words 2 min

    Ruohang FengPostgreSQLPG AdminPerformance

    Using sysbench to Test PostgreSQL Performance

    sysbench homepage: https://github.com/akopytov/sysbench Installation Binary installation - on Mac, use brew to install sysbench: brew install sysbench --with-postgresql Source compilation (CentOS): yum -y install make automake libtool pkgconfig …

    sysbench homepage: https://github.com/akopytov/sysbench Installation Binary installation - on Mac, use brew to install sysbench: brew install sysbench --with-postgresql Source compilation (CentOS): yum -y install make automake libtool pkgconfig …

  • Testing Disk Performance with FIO

    By Ruohang Feng In PGSQL 335 words 2 min

    Ruohang FengPostgreSQLPG AdminPerformance

    Testing Disk Performance with FIO

    Author: Vonng FIO is an excellent disk performance testing tool. You can test disk read/write performance using the following commands. fio --filename=/tmp/fio.data \ -direct=1 \ -iodepth=32 \ -rw=randrw \ --rwmixread=80 \ -bs=4k \ -size=1G \ …

    Author: Vonng FIO is an excellent disk performance testing tool. You can test disk read/write performance using the following commands. fio --filename=/tmp/fio.data \ -direct=1 \ -iodepth=32 \ -rw=randrw \ --rwmixread=80 \ -bs=4k \ -size=1G \ …