Skip to main content

Engineering Notes

Production notes and architectural case studies on Go backends, PostgreSQL query tuning, high-throughput telemetry, and multi-schema design.

8 min read

Cutting PostgreSQL Query Latency by 90% in High-Volume Go Systems

How we brought P95 PostgreSQL latency down from 9 seconds to 900ms in a Go backend by splitting scope resolution out of correlated subqueries, matching composite B-tree indexes to sort order, and trimming count joins.

  • PostgreSQL
  • Go (Golang)
  • Query Optimization
  • Database Indexing
  • k6 Load Testing
  • Backend Architecture

Region auto-routes Indonesia visitors to Bahasa Indonesia and others to English. Switch above anytime.