Request Details

Route
/api_complex GET
Timestamp
Sep 17, 2026 4:40 AM
Duration
136.77 ms
Status
200
Response Size
70 KB
Error
No

Performance Breakdown

Database
16.2% (5 queries)
View Rendering
7.6%
Application Logic
76.2%
Other Operations
0.0%
Total Operations
10
Slowest Operation
136.77 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 134.6ms 269.2ms 403.7ms 538.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/index 29 ms 21.2%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 27 ms 19.7%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 1 ms 0.7%
SELECT * FROM users WHERE id = ? 33 ms 24.1%
home#api_complex 137 ms 100.0%
home#api_complex 137 ms 100.0%
SELECT id, name FROM users WHERE email = ? 19 ms 13.9%
home#api_complex 137 ms 100.0%
users/index 12 ms 8.8%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 7 ms 5.1%