TLDR Data · QUICK LINKS

ADDING AN INDEX MADE THIS QUERY SLOWER

milanjovanovic.tech3 min read

Summary from the TLDR Data newsletter

An index matching ORDER BY in Postgres can still hurt when the filtered rows sit far down that index: inspect Rows Removed by Filter, test representative parameters, and use a composite index that matches both the filter and ordering.