Request Details

Route
/api_complex GET
Timestamp
Sep 22, 2026 9:28 AM
Duration
238.96 ms
Status
204
Response Size
44 KB
Error
No

Performance Breakdown

Database
5.9% (4 queries)
View Rendering
16.0%
Application Logic
78.1%
Other Operations
0.0%
Total Operations
18
Slowest Operation
238.96 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 306.0ms 611.9ms 917.9ms 1223.8ms

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 19 ms 8.0%
SELECT name FROM users 31 ms 13.0%
home#api_complex 239 ms 100.0%
home#api_complex 239 ms 100.0%
home/index 40 ms 16.7%
home/index 31 ms 13.0%
home#api_complex 239 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 11 ms 4.6%
users/index 12 ms 5.0%
home#api_complex 239 ms 100.0%
home/index 17 ms 7.1%
home/index 6 ms 2.5%
home/index 26 ms 10.9%
layouts/application 13 ms 5.4%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 20 ms 8.4%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 10 ms 4.2%
posts/show 26 ms 10.9%
posts/show 6 ms 2.5%