Request Details

Route
/api_complex GET
Timestamp
Sep 15, 2026 8:22 AM
Duration
194.26 ms
Status
201
Response Size
69 KB
Error
No

Performance Breakdown

Database
10.6% (3 queries)
View Rendering
26.3%
Application Logic
63.1%
Other Operations
0.0%
Total Operations
11
Slowest Operation
194.26 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.8ms 461.6ms 615.5ms

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 5 ms 2.6%
home#api_complex 194 ms 100.0%
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ? 29 ms 14.9%
layouts/application 29 ms 14.9%
home/index 39 ms 20.1%
posts/show 36 ms 18.5%
home#api_complex 194 ms 100.0%
SELECT users.* FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id WHERE users.active = ? AND posts.published = ? AND comments.approved = ? OR users.created_at > ? AND posts.created_at > ? AND commen... 7 ms 3.6%
home/index 31 ms 16.0%
posts/show 22 ms 11.3%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 29 ms 14.9%