Request Details

Route
/api_complex GET
Timestamp
Sep 13, 2026 8:17 AM
Duration
177.29 ms
Status
201
Response Size
47 KB
Error
No

Performance Breakdown

Database
14.2% (6 queries)
View Rendering
12.7%
Application Logic
73.2%
Other Operations
0.0%
Total Operations
13
Slowest Operation
177.29 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 181.7ms 363.4ms 545.2ms 726.9ms

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 177 ms 100.0%
posts/show 37 ms 20.9%
users/index 37 ms 20.9%
SELECT id, name, email FROM users WHERE id = ? 35 ms 19.7%
posts/show 12 ms 6.8%
home#api_complex 177 ms 100.0%
home#api_complex 177 ms 100.0%
SELECT name FROM users 5 ms 2.8%
SELECT * FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id LEFT JOIN tags ON posts.id = tags.post_id LEFT JOIN categories ON posts.category_id = categories.id WHERE users.active = ? AND posts.publi... 13 ms 7.3%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 28 ms 15.8%
UPDATE posts SET title = ?, content = ?, updated_at = ? WHERE id = ? 15 ms 8.5%
SELECT name FROM users 7 ms 3.9%
users/index 6 ms 3.4%