Request Details

Route
/api_complex GET
Timestamp
Sep 23, 2026 2:50 AM
Duration
95.4 ms
Status
201
Response Size
19 KB
Error
No

Performance Breakdown

Database
6.1% (5 queries)
View Rendering
4.8%
Application Logic
89.1%
Other Operations
0.0%
Total Operations
13
Slowest Operation
95.4 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 160.6ms 321.2ms 481.8ms 642.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 95 ms 100.0%
home#api_complex 95 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 4 ms 4.2%
SELECT id, name FROM users WHERE email = ? 15 ms 15.7%
SELECT * FROM posts WHERE created_at > ? 13 ms 13.6%
home#api_complex 95 ms 100.0%
home#api_complex 95 ms 100.0%
users/index 14 ms 14.7%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 5 ms 5.2%
home#api_complex 95 ms 100.0%
home#api_complex 95 ms 100.0%
layouts/application 17 ms 17.8%
SELECT * FROM posts WHERE created_at > ? 2 ms 2.1%