Request Details

Route
/api_complex GET
Timestamp
Nov 10, 2026 11:55 AM
Duration
178.78 ms
Status
200
Response Size
34 KB
Error
No

Performance Breakdown

Database
24.9% (11 queries)
View Rendering
15.6%
Application Logic
59.5%
Other Operations
0.0%
Total Operations
20
Slowest Operation
178.78 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 225.3ms 450.7ms 676.0ms 901.3ms

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 posts WHERE created_at > ? 9 ms 5.0%
home#api_complex 179 ms 100.0%
users/index 25 ms 14.0%
layouts/application 37 ms 20.7%
posts/show 24 ms 13.4%
SELECT * FROM (SELECT users.id, users.name, users.email, COUNT(posts.id) as post_count FROM users LEFT JOIN posts ON users.id = posts.user_id WHERE users.active = ? GROUP BY users.id) as user_posts JOIN (SELECT user_id, COUNT(*) as comment_count FROM c... 18 ms 10.1%
posts/show 8 ms 4.5%
home#api_complex 179 ms 100.0%
SELECT * FROM users WHERE id = ? 6 ms 3.4%
SELECT * FROM posts WHERE created_at > ? 24 ms 13.4%
SELECT * FROM users WHERE id = ? 31 ms 17.3%
SELECT * FROM users WHERE id = ? 10 ms 5.6%
SELECT * FROM posts WHERE created_at > ? 35 ms 19.6%
home/index 7 ms 3.9%
home#api_complex 179 ms 100.0%
SELECT id, name FROM users WHERE email = ? 33 ms 18.5%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 7 ms 3.9%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 29 ms 16.2%
layouts/application 40 ms 22.4%
UPDATE posts SET title = ?, content = ?, updated_at = ? WHERE id = ? 22 ms 12.3%