E-commerce

Index strategy redesign cutting p95 by 71%

Sample engagement showing how a focused index redesign and three query rewrites moved p95 from 920ms to 270ms on a high-traffic product catalog.

Representative engagement template — replace with a real client write-up when you have one cleared for publication.

The team had accumulated dozens of indexes over five years, several duplicating each other. We captured a week of pg_stat_user_indexes data, ranked indexes by usage, and dropped the long tail. Composite indexes on the catalog browse path replaced two single-column indexes that were never used together.

Before and after performance comparison

Outcomes

  • Three high-traffic queries rewritten
  • 14 unused / duplicate indexes safely dropped
  • Storage footprint down 18%