Request Details

Route
/api_complex GET
Timestamp
Sep 16, 2026 9:47 PM
Duration
126.63 ms
Status
200
Response Size
29 KB
Error
No

Performance Breakdown

Database
8.3% (6 queries)
View Rendering
13.7%
Application Logic
78.0%
Other Operations
0.0%
Total Operations
24
Slowest Operation
126.63 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 365.2ms 730.3ms 1095.5ms 1460.6ms

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
SELECT name FROM users 14 ms 11.1%
home#api_complex 127 ms 100.0%
posts/show 39 ms 30.8%
home#api_complex 127 ms 100.0%
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ? 18 ms 14.2%
posts/show 11 ms 8.7%
home#api_complex 127 ms 100.0%
home#api_complex 127 ms 100.0%
layouts/application 40 ms 31.6%
home/index 15 ms 11.8%
posts/show 8 ms 6.3%
posts/show 16 ms 12.6%
posts/show 16 ms 12.6%
home#api_complex 127 ms 100.0%
posts/show 32 ms 25.3%
SELECT name FROM users 20 ms 15.8%
SELECT name FROM users 31 ms 24.5%
layouts/application 23 ms 18.2%
SELECT * FROM users WHERE id = ? 16 ms 12.6%
home#api_complex 127 ms 100.0%
home#api_complex 127 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 22 ms 17.4%
home#api_complex 127 ms 100.0%
home#api_complex 127 ms 100.0%