Request Details

Route
/api_complex GET
Timestamp
Sep 17, 2026 7:28 PM
Duration
94.44 ms
Status
204
Response Size
34 KB
Error
No

Performance Breakdown

Database
19.6% (8 queries)
View Rendering
17.7%
Application Logic
62.7%
Other Operations
0.0%
Total Operations
21
Slowest Operation
94.44 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 263.8ms 527.5ms 791.3ms 1055.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
SELECT id, name FROM users WHERE email = ? 20 ms 21.2%
home#api_complex 94 ms 100.0%
home#api_complex 94 ms 100.0%
posts/show 25 ms 26.5%
users/index 30 ms 31.8%
SELECT users.*, posts.*, comments.*, COUNT(DISTINCT posts.id) as post_count, COUNT(DISTINCT comments.id) as comment_count, AVG(posts.view_count) as avg_views, MAX(comments.created_at) as latest_comment FROM users LEFT JOIN posts ON users.id = posts.use... 15 ms 15.9%
SELECT * FROM posts WHERE created_at > ? 25 ms 26.5%
home#api_complex 94 ms 100.0%
SELECT * FROM posts WHERE created_at > ? 33 ms 34.9%
SELECT * FROM posts WHERE created_at > ? 35 ms 37.1%
SELECT * FROM users WHERE id = ? 20 ms 21.2%
layouts/application 30 ms 31.8%
home#api_complex 94 ms 100.0%
home#api_complex 94 ms 100.0%
SELECT name FROM users 32 ms 33.9%
home/index 36 ms 38.1%
home#api_complex 94 ms 100.0%
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ? 27 ms 28.6%
home#api_complex 94 ms 100.0%
posts/show 37 ms 39.2%
users/index 29 ms 30.7%