Request Details

Route
/api_complex GET
Timestamp
Sep 12, 2026 8:35 AM
Duration
236.52 ms
Status
201
Response Size
47 KB
Error
No

Performance Breakdown

Database
2.4% (2 queries)
View Rendering
5.6%
Application Logic
92.0%
Other Operations
0.0%
Total Operations
15
Slowest Operation
236.52 ms

Request Trace

How to read this

Each row is a layer of your stack. Many short Database bars means N+1 queries — fix with includes(). A wide Action bar with little Database time means slow Ruby code. A wide View bar usually means a partial rendered in a loop.

Action
View
Database
Other
Action
View
Database
0.0ms 578.4ms 1156.9ms 1735.3ms 2313.7ms

Operations

How to use this

Sort by Impact to find your biggest wins. Click any row for details and optimisation suggestions. The same SQL appearing multiple times is an N+1 — fix with includes(). A single operation above 50% impact is your highest priority.

Operation Duration Impact Timeline Actions
home#api_complex 237 ms 100.0%
home#api_complex 237 ms 100.0%
users/index 22 ms 9.3%
posts/show 31 ms 13.1%
posts/show 37 ms 15.6%
home#api_complex 237 ms 100.0%
layouts/application 39 ms 16.5%
home#api_complex 237 ms 100.0%
home#api_complex 237 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 23 ms 9.7%
home#api_complex 237 ms 100.0%
home#api_complex 237 ms 100.0%
home#api_complex 237 ms 100.0%
home#api_complex 237 ms 100.0%
SELECT * FROM users WHERE id = ? 33 ms 14.0%