Request Details

Route
/api_complex GET
Timestamp
Sep 16, 2026 4:35 AM
Duration
148.31 ms
Status
204
Response Size
65 KB
Error
No

Performance Breakdown

Database
15.8% (8 queries)
View Rendering
28.9%
Application Logic
55.3%
Other Operations
0.0%
Total Operations
21
Slowest Operation
148.31 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 201.0ms 402.0ms 602.9ms 803.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 148 ms 100.0%
users/index 32 ms 21.6%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 23 ms 15.5%
posts/show 26 ms 17.5%
home/index 16 ms 10.8%
home#api_complex 148 ms 100.0%
layouts/application 18 ms 12.1%
users/index 26 ms 17.5%
users/index 14 ms 9.4%
home/index 27 ms 18.2%
SELECT * FROM posts WHERE created_at > ? 16 ms 10.8%
SELECT * FROM posts WHERE created_at > ? 8 ms 5.4%
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... 9 ms 6.1%
SELECT DISTINCT users.*, posts.*, comments.* FROM users, posts, comments WHERE users.id = posts.user_id AND posts.id = comments.post_id AND users.created_at > ? AND posts.created_at > ? AND comments.created_at > ? 11 ms 7.4%
posts/show 39 ms 26.3%
posts/show 21 ms 14.2%
users/index 13 ms 8.8%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 22 ms 14.8%
home#api_complex 148 ms 100.0%
SELECT id, name FROM users WHERE email = ? 17 ms 11.5%
SELECT name FROM users 21 ms 14.2%