Request Details

Route
/api_complex GET
Timestamp
Sep 23, 2026 1:07 AM
Duration
256.23 ms
Status
204
Response Size
74 KB
Error
No

Performance Breakdown

Database
3.0% (3 queries)
View Rendering
5.9%
Application Logic
91.1%
Other Operations
0.0%
Total Operations
15
Slowest Operation
256.23 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 492.2ms 984.3ms 1476.5ms 1968.6ms

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 256 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 5 ms 2.0%
home#api_complex 256 ms 100.0%
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ? 31 ms 12.1%
layouts/application 15 ms 5.9%
layouts/application 12 ms 4.7%
home#api_complex 256 ms 100.0%
home#api_complex 256 ms 100.0%
home/index 36 ms 14.0%
home#api_complex 256 ms 100.0%
users/index 13 ms 5.1%
home#api_complex 256 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 23 ms 9.0%
layouts/application 40 ms 15.6%
home#api_complex 256 ms 100.0%