Posts tagged with "optimization"

All posts related to optimization

Prosopite - Rails n+1 query auto-detection

Prosopite, recently featured in Ruby Weekly #740, emerges as a promising alternative to the well-known Bullet gem. This newer tool offers a more streamlined approach to detecting n+1 queries in Rails applications while boasting improved accuracy with fewer false-positives.

N+1 queries often significantly impact application performance. Having reliable detection tools in our arsenal is essential for maintaining efficient database interactions.

I’ve recently dealt with removing N+1 queries on an application, leading to 2x latency improvements. That system also suffered from another kind of N+1 problem - it looked up a ton of cache keys in Redis, which I’ve changed to a single lookup, avoiding unnecessary roundtrips to the cache.

Read more