Request Details

Route
/api_complex GET
Timestamp
Nov 11, 2026 7:17 AM
Duration
131.57 ms
Status
200
Response Size
42 KB
Error
No

Performance Breakdown

Database
8.7% (3 queries)
View Rendering
22.0%
Application Logic
69.3%
Other Operations
0.0%
Total Operations
13
Slowest Operation
131.57 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 189.8ms 379.6ms 569.5ms 759.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
layouts/application 18 ms 13.7%
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 > ? 5 ms 3.8%
home#api_complex 132 ms 100.0%
SELECT id, name, email FROM users WHERE id = ? 30 ms 22.8%
home/index 32 ms 24.3%
home#api_complex 132 ms 100.0%
layouts/application 36 ms 27.4%
SELECT * FROM posts WHERE created_at > ? 31 ms 23.6%
home#api_complex 132 ms 100.0%
home#api_complex 132 ms 100.0%
users/index 36 ms 27.4%
home/index 25 ms 19.0%
layouts/application 20 ms 15.2%