Request Details

Route
/api_complex GET
Timestamp
Sep 15, 2026 1:42 PM
Duration
240.77 ms
Status
201
Response Size
75 KB
Error
No

Performance Breakdown

Database
3.4% (3 queries)
View Rendering
10.3%
Application Logic
86.3%
Other Operations
0.0%
Total Operations
13
Slowest Operation
240.77 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 279.0ms 558.0ms 837.0ms 1116.1ms

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
layouts/application 37 ms 15.4%
home#api_complex 241 ms 100.0%
posts/show 15 ms 6.2%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 7 ms 2.9%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 14 ms 5.8%
layouts/application 11 ms 4.6%
users/index 14 ms 5.8%
home/index 32 ms 13.3%
home#api_complex 241 ms 100.0%
home#api_complex 241 ms 100.0%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 17 ms 7.1%
home#api_complex 241 ms 100.0%
home/index 6 ms 2.5%