Request Details

Route
/api_complex GET
Timestamp
Sep 20, 2026 1:43 AM
Duration
224.9 ms
Status
204
Response Size
65 KB
Error
No

Performance Breakdown

Database
8.5% (4 queries)
View Rendering
15.1%
Application Logic
76.4%
Other Operations
0.0%
Total Operations
14
Slowest Operation
224.9 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 220.7ms 441.4ms 662.0ms 882.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
SELECT COUNT(*) FROM comments WHERE post_id = ? 28 ms 12.4%
posts/show 10 ms 4.4%
users/index 31 ms 13.8%
home#api_complex 225 ms 100.0%
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 > ? 12 ms 5.3%
home#api_complex 225 ms 100.0%
home/index 34 ms 15.1%
users/index 6 ms 2.7%
home#api_complex 225 ms 100.0%
home/index 36 ms 16.0%
users/index 7 ms 3.1%
SELECT * FROM users WHERE id = ? 18 ms 8.0%
posts/show 9 ms 4.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 17 ms 7.6%