Request Details

Route
/api_complex GET
Timestamp
Nov 11, 2026 7:02 AM
Duration
233.46 ms
Status
204
Response Size
14 KB
Error
No

Performance Breakdown

Database
4.6% (2 queries)
View Rendering
30.3%
Application Logic
65.1%
Other Operations
0.0%
Total Operations
19
Slowest Operation
233.46 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 268.8ms 537.7ms 806.5ms 1075.4ms

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
posts/show 39 ms 16.7%
users/index 17 ms 7.3%
SELECT DISTINCT users.*, posts.*, comments.* FROM users, posts, comments WHERE users.id = posts.user_id AND posts.id = comments.post_id AND users.created_at > ? AND posts.created_at > ? AND comments.created_at > ? 28 ms 12.0%
posts/show 16 ms 6.9%
home#api_complex 233 ms 100.0%
posts/show 38 ms 16.3%
home#api_complex 233 ms 100.0%
SELECT * FROM users WHERE id = ? 21 ms 9.0%
users/index 29 ms 12.4%
users/index 26 ms 11.1%
posts/show 19 ms 8.1%
posts/show 40 ms 17.1%
home#api_complex 233 ms 100.0%
posts/show 15 ms 6.4%
home/index 15 ms 6.4%
layouts/application 8 ms 3.4%
layouts/application 28 ms 12.0%
layouts/application 12 ms 5.1%
layouts/application 24 ms 10.3%