Request Details

Route
/api_complex GET
Timestamp
Sep 18, 2026 6:44 PM
Duration
169.49 ms
Status
201
Response Size
63 KB
Error
No

Performance Breakdown

Database
11.3% (7 queries)
View Rendering
11.3%
Application Logic
77.4%
Other Operations
0.0%
Total Operations
23
Slowest Operation
169.49 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 383.1ms 766.2ms 1149.3ms 1532.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
layouts/application 21 ms 12.4%
users/index 11 ms 6.5%
home#api_complex 169 ms 100.0%
SELECT name FROM users 17 ms 10.0%
users/index 28 ms 16.5%
SELECT name FROM users 32 ms 18.9%
home#api_complex 169 ms 100.0%
home#api_complex 169 ms 100.0%
posts/show 10 ms 5.9%
home#api_complex 169 ms 100.0%
SELECT id, name FROM users WHERE email = ? 16 ms 9.4%
users/index 20 ms 11.8%
SELECT name FROM users 17 ms 10.0%
home/index 28 ms 16.5%
home#api_complex 169 ms 100.0%
home/index 9 ms 5.3%
home#api_complex 169 ms 100.0%
users/index 13 ms 7.7%
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... 33 ms 19.5%
SELECT id, name FROM users WHERE email = ? 29 ms 17.1%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 29 ms 17.1%
posts/show 33 ms 19.5%
home#api_complex 169 ms 100.0%