Request Details

Route
/api_complex GET
Timestamp
Nov 09, 2026 12:40 PM
Duration
156.63 ms
Status
200
Response Size
32 KB
Error
No

Performance Breakdown

Database
1.1% (1 query)
View Rendering
11.7%
Application Logic
87.2%
Other Operations
0.0%
Total Operations
18
Slowest Operation
156.63 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 449.1ms 898.2ms 1347.2ms 1796.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 157 ms 100.0%
home#api_complex 157 ms 100.0%
home#api_complex 157 ms 100.0%
home#api_complex 157 ms 100.0%
home#api_complex 157 ms 100.0%
home#api_complex 157 ms 100.0%
home#api_complex 157 ms 100.0%
users/index 37 ms 23.6%
layouts/application 39 ms 24.9%
users/index 29 ms 18.5%
SELECT DISTINCT users.*, posts.*, comments.* FROM users, posts, comments WHERE users.id = posts.user_id AND posts.id = comments.post_id AND users.created_at > ? AND posts.created_at > ? AND comments.created_at > ? 19 ms 12.1%
posts/show 21 ms 13.4%
users/index 40 ms 25.5%
home#api_complex 157 ms 100.0%
home#api_complex 157 ms 100.0%
layouts/application 38 ms 24.3%
posts/show 7 ms 4.5%
home#api_complex 157 ms 100.0%