Request Details

Route
/api_complex GET
Timestamp
Nov 20, 2026 1:10 PM
Duration
89.32 ms
Status
201
Response Size
37 KB
Error
No

Performance Breakdown

Database
16.9% (5 queries)
View Rendering
41.3%
Application Logic
41.9%
Other Operations
0.0%
Total Operations
19
Slowest Operation
89.32 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 160.0ms 320.0ms 480.0ms 640.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
SELECT * FROM users WHERE id = ? 2 ms 2.2%
layouts/application 32 ms 35.8%
home/index 31 ms 34.7%
posts/show 17 ms 19.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 18 ms 20.2%
DELETE FROM comments WHERE created_at < ? 33 ms 36.9%
users/index 30 ms 33.6%
home/index 25 ms 28.0%
home#api_complex 89 ms 100.0%
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ? 34 ms 38.1%
home#api_complex 89 ms 100.0%
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... 21 ms 23.5%
home#api_complex 89 ms 100.0%
posts/show 19 ms 21.3%
home/index 31 ms 34.7%
home/index 29 ms 32.5%
posts/show 37 ms 41.4%
home/index 6 ms 6.7%
layouts/application 7 ms 7.8%