Request Details

Route
/api_complex GET
Timestamp
Nov 18, 2026 5:37 AM
Duration
268.01 ms
Status
201
Response Size
62 KB
Error
No

Performance Breakdown

Database
3.5% (4 queries)
View Rendering
3.6%
Application Logic
92.8%
Other Operations
0.0%
Total Operations
12
Slowest Operation
268.01 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 433.0ms 866.0ms 1299.0ms 1732.0ms

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#api_complex 268 ms 100.0%
posts/show 39 ms 14.6%
SELECT * FROM posts WHERE created_at > ? 1 ms 0.4%
home#api_complex 268 ms 100.0%
home#api_complex 268 ms 100.0%
home#api_complex 268 ms 100.0%
layouts/application 24 ms 9.0%
UPDATE posts SET title = ?, content = ?, updated_at = ? WHERE id = ? 32 ms 11.9%
home#api_complex 268 ms 100.0%
home#api_complex 268 ms 100.0%
SELECT * FROM posts WHERE created_at > ? 20 ms 7.5%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 8 ms 3.0%