Request Details

Route
/api_complex GET
Timestamp
Sep 14, 2026 1:20 PM
Duration
150.94 ms
Status
200
Response Size
75 KB
Error
No

Performance Breakdown

Database
15.0% (5 queries)
View Rendering
33.7%
Application Logic
51.4%
Other Operations
0.0%
Total Operations
15
Slowest Operation
150.94 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 147.0ms 293.9ms 440.9ms 587.9ms

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 * FROM posts WHERE created_at > ? 22 ms 14.6%
layouts/application 37 ms 24.5%
layouts/application 7 ms 4.6%
home#api_complex 151 ms 100.0%
posts/show 35 ms 23.2%
DELETE FROM posts WHERE id = ? 13 ms 8.6%
home/index 20 ms 13.3%
home/index 16 ms 10.6%
posts/show 37 ms 24.5%
users/index 9 ms 6.0%
SELECT name FROM users 15 ms 9.9%
layouts/application 37 ms 24.5%
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ? 27 ms 17.9%
home#api_complex 151 ms 100.0%
SELECT * FROM posts WHERE created_at > ? 11 ms 7.3%