Request Details

Route
/api_complex GET
Timestamp
Sep 20, 2026 8:13 PM
Duration
149.69 ms
Status
204
Response Size
75 KB
Error
No

Performance Breakdown

Database
1.6% (2 queries)
View Rendering
10.4%
Application Logic
88.0%
Other Operations
0.0%
Total Operations
25
Slowest Operation
149.69 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 510.1ms 1020.2ms 1530.2ms 2040.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
home#api_complex 150 ms 100.0%
users/index 15 ms 10.0%
SELECT * FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id LEFT JOIN tags ON posts.id = tags.post_id LEFT JOIN categories ON posts.category_id = categories.id WHERE users.active = ? AND posts.publi... 7 ms 4.7%
home#api_complex 150 ms 100.0%
posts/show 33 ms 22.0%
home#api_complex 150 ms 100.0%
home#api_complex 150 ms 100.0%
posts/show 40 ms 26.7%
home#api_complex 150 ms 100.0%
users/index 9 ms 6.0%
SELECT posts.* FROM posts WHERE title LIKE ? OR content LIKE ? 25 ms 16.7%
posts/show 5 ms 3.3%
home#api_complex 150 ms 100.0%
home#api_complex 150 ms 100.0%
layouts/application 12 ms 8.0%
home#api_complex 150 ms 100.0%
home#api_complex 150 ms 100.0%
layouts/application 28 ms 18.7%
layouts/application 20 ms 13.4%
layouts/application 9 ms 6.0%
users/index 18 ms 12.0%
home#api_complex 150 ms 100.0%
home#api_complex 150 ms 100.0%
home#api_complex 150 ms 100.0%
home/index 23 ms 15.4%