Request Details

Route
/api_complex GET
Timestamp
Sep 14, 2026 11:32 AM
Duration
240.11 ms
Status
204
Response Size
51 KB
Error
No

Performance Breakdown

Database
1.9% (2 queries)
View Rendering
8.8%
Application Logic
89.3%
Other Operations
0.0%
Total Operations
15
Slowest Operation
240.11 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 470.4ms 940.9ms 1411.3ms 1881.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 240 ms 100.0%
layouts/application 40 ms 16.7%
posts/show 32 ms 13.3%
home#api_complex 240 ms 100.0%
users/index 13 ms 5.4%
home#api_complex 240 ms 100.0%
UPDATE posts SET view_count = view_count + ? WHERE published = ? 34 ms 14.2%
users/index 32 ms 13.3%
home#api_complex 240 ms 100.0%
posts/show 28 ms 11.7%
home#api_complex 240 ms 100.0%
home#api_complex 240 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 2 ms 0.8%
home#api_complex 240 ms 100.0%
users/index 20 ms 8.3%