Request Details

Route
/api_complex GET
Timestamp
Sep 18, 2026 11:27 AM
Duration
182.96 ms
Status
204
Response Size
53 KB
Error
No

Performance Breakdown

Database
2.3% (3 queries)
View Rendering
12.2%
Application Logic
85.5%
Other Operations
0.0%
Total Operations
15
Slowest Operation
182.96 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 320.9ms 641.9ms 962.8ms 1283.8ms

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 183 ms 100.0%
home/index 23 ms 12.6%
home#api_complex 183 ms 100.0%
home#api_complex 183 ms 100.0%
home#api_complex 183 ms 100.0%
posts/show 15 ms 8.2%
home#api_complex 183 ms 100.0%
layouts/application 34 ms 18.6%
posts/show 34 ms 18.6%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 3 ms 1.6%
home/index 38 ms 20.8%
home/index 12 ms 6.6%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 12 ms 6.6%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 15 ms 8.2%
home#api_complex 183 ms 100.0%