Request Details

Route
/api_complex GET
Timestamp
Nov 09, 2026 3:08 PM
Duration
183.13 ms
Status
200
Response Size
14 KB
Error
No

Performance Breakdown

Database
3.7% (3 queries)
View Rendering
7.8%
Application Logic
88.5%
Other Operations
0.0%
Total Operations
21
Slowest Operation
183.13 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 568.9ms 1137.7ms 1706.6ms 2275.4ms

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 183 ms 100.0%
layouts/application 27 ms 14.7%
posts/show 29 ms 15.8%
home#api_complex 183 ms 100.0%
home#api_complex 183 ms 100.0%
posts/show 37 ms 20.2%
home#api_complex 183 ms 100.0%
UPDATE posts SET view_count = view_count + ? WHERE published = ? 29 ms 15.8%
home#api_complex 183 ms 100.0%
home#api_complex 183 ms 100.0%
home#api_complex 183 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 25 ms 13.7%
home/index 18 ms 9.8%
layouts/application 34 ms 18.6%
home#api_complex 183 ms 100.0%
SELECT name FROM users 30 ms 16.4%
home#api_complex 183 ms 100.0%
posts/show 26 ms 14.2%
layouts/application 6 ms 3.3%
home#api_complex 183 ms 100.0%
home#api_complex 183 ms 100.0%