Request Details

Route
/api_complex GET
Timestamp
Sep 17, 2026 7:00 PM
Duration
197.17 ms
Status
204
Response Size
27 KB
Error
No

Performance Breakdown

Database
6.7% (3 queries)
View Rendering
18.5%
Application Logic
74.8%
Other Operations
0.0%
Total Operations
12
Slowest Operation
197.17 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 197.6ms 395.3ms 592.9ms 790.5ms

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
home/index 31 ms 15.7%
home#api_complex 197 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 31 ms 15.7%
home/index 7 ms 3.6%
layouts/application 12 ms 6.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 > ? 12 ms 6.1%
SELECT * FROM posts WHERE created_at > ? 10 ms 5.1%
posts/show 33 ms 16.7%
posts/show 28 ms 14.2%
home#api_complex 197 ms 100.0%
posts/show 35 ms 17.8%
home#api_complex 197 ms 100.0%