Five Easy to Miss PostgreSQL Query Performance Bottlenecks
PostgreSQL query planner is full of surprises, so a common-sense approach to writing performant queries is sometimes misleading. In this blog post, I'll describe examples of optimizing seemingly obvious queries with the help of EXPLAIN ANALYZE and Postgres metadata analysis.
https://pawelurbanek.com/postgresql-query-bottleneck