Request Details

Route
/api_complex GET
Timestamp
Nov 10, 2026 8:16 AM
Duration
223.7 ms
Status
200
Response Size
14 KB
Error
No

Performance Breakdown

Database
17.9% (4 queries)
View Rendering
36.0%
Application Logic
46.1%
Other Operations
0.0%
Total Operations
12
Slowest Operation
223.7 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 121.4ms 242.8ms 364.3ms 485.7ms

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
posts/show 40 ms 17.9%
layouts/application 5 ms 2.2%
home#api_complex 224 ms 100.0%
layouts/application 40 ms 17.9%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 14 ms 6.3%
SELECT name FROM users 28 ms 12.5%
SELECT name FROM users 15 ms 6.7%
SELECT * FROM posts WHERE created_at > ? 30 ms 13.4%
users/index 35 ms 15.6%
home/index 20 ms 8.9%
home/index 30 ms 13.4%
users/index 5 ms 2.2%