Request Details

Route
/api_complex GET
Timestamp
Sep 12, 2026 5:04 AM
Duration
188.2 ms
Status
204
Response Size
35 KB
Error
No

Performance Breakdown

Database
16.8% (7 queries)
View Rendering
15.5%
Application Logic
67.7%
Other Operations
0.0%
Total Operations
16
Slowest Operation
188.2 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 208.4ms 416.8ms 625.2ms 833.6ms

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 18 ms 9.6%
home#api_complex 188 ms 100.0%
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 > ? 6 ms 3.2%
posts/show 8 ms 4.3%
SELECT * FROM posts WHERE created_at > ? 35 ms 18.6%
home/index 28 ms 14.9%
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... 30 ms 15.9%
home#api_complex 188 ms 100.0%
layouts/application 16 ms 8.5%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 16 ms 8.5%
home#api_complex 188 ms 100.0%
home/index 22 ms 11.7%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 26 ms 13.8%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 19 ms 10.1%
users/index 37 ms 19.7%
SELECT name FROM users 8 ms 4.3%