Hunting Down a Slow Rails Request
Recently, we started using Skylight in production for one of our clients’ Rails applications, in an attempt to try to improve the performance of some of the more critical API endpoints.
Skylight reports on:
- Time taken per request
- Breakdown of time taken per SQL query
- Object allocations per request
I noticed an unusually large amount of allocated objects for one request:
This request would take anywhere from 400ms to 3000ms to respond, which is WAY too long.
Read more »