Request Details

Route
/api_complex GET
Timestamp
Nov 18, 2026 4:34 AM
Duration
117.85 ms
Status
200
Response Size
44 KB
Error
No

Performance Breakdown

Database
3.3% (2 queries)
View Rendering
12.4%
Application Logic
84.3%
Other Operations
0.0%
Total Operations
15
Slowest Operation
117.85 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 209.8ms 419.6ms 629.3ms 839.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 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 > ? 7 ms 5.9%
SELECT COUNT(*) FROM comments WHERE post_id = ? 21 ms 17.8%
home#api_complex 118 ms 100.0%
home#api_complex 118 ms 100.0%
home#api_complex 118 ms 100.0%
home#api_complex 118 ms 100.0%
home#api_complex 118 ms 100.0%
home/index 15 ms 12.7%
posts/show 26 ms 22.1%
posts/show 11 ms 9.3%
users/index 5 ms 4.2%
users/index 8 ms 6.8%
posts/show 19 ms 16.1%
home#api_complex 118 ms 100.0%
layouts/application 20 ms 17.0%