Request Details

Route
/api_complex GET
Timestamp
Sep 20, 2026 6:50 PM
Duration
109.85 ms
Status
204
Response Size
50 KB
Error
No

Performance Breakdown

Database
7.4% (4 queries)
View Rendering
17.9%
Application Logic
74.7%
Other Operations
0.0%
Total Operations
21
Slowest Operation
109.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 294.0ms 587.9ms 881.9ms 1175.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
home#api_complex 110 ms 100.0%
home#api_complex 110 ms 100.0%
layouts/application 7 ms 6.4%
home#api_complex 110 ms 100.0%
posts/show 31 ms 28.2%
posts/show 6 ms 5.5%
layouts/application 38 ms 34.6%
layouts/application 25 ms 22.8%
home#api_complex 110 ms 100.0%
home#api_complex 110 ms 100.0%
home#api_complex 110 ms 100.0%
home/index 13 ms 11.8%
home#api_complex 110 ms 100.0%
posts/show 16 ms 14.6%
SELECT COUNT(*) FROM comments WHERE post_id = ? 35 ms 31.9%
SELECT name FROM users 12 ms 10.9%
SELECT * FROM users WHERE id = ? 13 ms 11.8%
home/index 38 ms 34.6%
users/index 36 ms 32.8%
home#api_complex 110 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 27 ms 24.6%