Request Details

Route
/api_complex GET
Timestamp
Sep 12, 2026 7:50 PM
Duration
112.94 ms
Status
200
Response Size
50 KB
Error
No

Performance Breakdown

Database
5.7% (2 queries)
View Rendering
21.0%
Application Logic
73.4%
Other Operations
0.0%
Total Operations
11
Slowest Operation
112.94 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 153.9ms 307.9ms 461.8ms 615.7ms

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
posts/show 23 ms 20.4%
home/index 21 ms 18.6%
posts/show 32 ms 28.3%
users/index 36 ms 31.9%
home#api_complex 113 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 19 ms 16.8%
home#api_complex 113 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 16 ms 14.2%
home#api_complex 113 ms 100.0%
home/index 17 ms 15.1%
home#api_complex 113 ms 100.0%