Cut Your MongoDB Costs by 79% with ShapeFirst Optimizations | HackerNoon
The latency dropped significantly after optimizing the database queries by refactoring an N + 1 query anti-pattern into a single aggregation, leading to substantial cost savings.