Request Details

Route
/api_complex GET
Timestamp
Nov 11, 2026 10:37 PM
Duration
98.04 ms
Status
204
Response Size
51 KB
Error
No

Performance Breakdown

Database
10.1% (2 queries)
View Rendering
47.8%
Application Logic
42.1%
Other Operations
0.0%
Total Operations
14
Slowest Operation
98.04 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 116.5ms 233.0ms 349.6ms 466.1ms

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
users/index 29 ms 29.6%
posts/show 29 ms 29.6%
home#api_complex 98 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 33 ms 33.7%
users/index 36 ms 36.7%
SELECT * FROM users WHERE id = ? 14 ms 14.3%
posts/show 10 ms 10.2%
home/index 5 ms 5.1%
layouts/application 39 ms 39.8%
home#api_complex 98 ms 100.0%
home/index 10 ms 10.2%
home/index 5 ms 5.1%
users/index 40 ms 40.8%
users/index 20 ms 20.4%