Request Details

Route
/api_complex GET
Timestamp
Nov 10, 2026 5:48 AM
Duration
159.41 ms
Status
200
Response Size
39 KB
Error
No

Performance Breakdown

Database
9.4% (7 queries)
View Rendering
12.2%
Application Logic
78.5%
Other Operations
0.0%
Total Operations
16
Slowest Operation
159.41 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 203.2ms 406.3ms 609.5ms 812.7ms

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
posts/show 13 ms 8.2%
SELECT id, name FROM users WHERE email = ? 9 ms 5.6%
home/index 7 ms 4.4%
posts/show 31 ms 19.4%
home#api_complex 159 ms 100.0%
home#api_complex 159 ms 100.0%
home#api_complex 159 ms 100.0%
home#api_complex 159 ms 100.0%
SELECT * FROM users WHERE id = ? 25 ms 15.7%
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... 21 ms 13.2%
posts/show 40 ms 25.1%
SELECT * FROM users WHERE id = ? 8 ms 5.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 1 ms 0.6%
users/index 8 ms 5.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 3 ms 1.9%
SELECT name FROM users 9 ms 5.6%