Request Details

Route
/api_complex GET
Timestamp
Sep 22, 2026 7:18 PM
Duration
180.8 ms
Status
201
Response Size
46 KB
Error
No

Performance Breakdown

Database
14.3% (7 queries)
View Rendering
20.7%
Application Logic
65.0%
Other Operations
0.0%
Total Operations
18
Slowest Operation
180.8 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 208.6ms 417.2ms 625.8ms 834.4ms

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 comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 1 ms 0.6%
home#api_complex 181 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 34 ms 18.8%
posts/show 6 ms 3.3%
home#api_complex 181 ms 100.0%
users/index 8 ms 4.4%
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... 24 ms 13.3%
posts/show 19 ms 10.5%
DELETE FROM posts WHERE id = ? 30 ms 16.6%
home#api_complex 181 ms 100.0%
home/index 10 ms 5.5%
posts/show 36 ms 19.9%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 1 ms 0.6%
layouts/application 37 ms 20.5%
DELETE FROM comments WHERE created_at < ? 17 ms 9.4%
users/index 32 ms 17.7%
SELECT * FROM users WHERE id = ? 12 ms 6.6%
users/index 25 ms 13.8%