Request Details

Route
/api_complex GET
Timestamp
Nov 22, 2026 2:41 PM
Duration
153.82 ms
Status
204
Response Size
84 KB
Error
No

Performance Breakdown

Database
6.5% (4 queries)
View Rendering
16.0%
Application Logic
77.5%
Other Operations
0.0%
Total Operations
18
Slowest Operation
153.82 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 297.7ms 595.5ms 893.2ms 1190.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 users.* FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id WHERE users.active = ? AND posts.published = ? AND comments.approved = ? OR users.created_at > ? AND posts.created_at > ? AND commen... 20 ms 13.0%
DELETE FROM comments WHERE created_at < ? 1 ms 0.7%
UPDATE posts SET title = ?, content = ?, updated_at = ? WHERE id = ? 32 ms 20.8%
home#api_complex 154 ms 100.0%
home/index 38 ms 24.7%
home#api_complex 154 ms 100.0%
layouts/application 38 ms 24.7%
home#api_complex 154 ms 100.0%
users/index 14 ms 9.1%
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 > ? 25 ms 16.3%
posts/show 36 ms 23.4%
home#api_complex 154 ms 100.0%
layouts/application 22 ms 14.3%
home/index 15 ms 9.8%
home#api_complex 154 ms 100.0%
home#api_complex 154 ms 100.0%
home/index 17 ms 11.1%
home/index 10 ms 6.5%