Request Details

Route
/api_complex GET
Timestamp
Nov 20, 2026 4:29 PM
Duration
109.15 ms
Status
201
Response Size
40 KB
Error
No

Performance Breakdown

Database
13.5% (7 queries)
View Rendering
11.8%
Application Logic
74.8%
Other Operations
0.0%
Total Operations
16
Slowest Operation
109.15 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 219.0ms 437.9ms 656.9ms 875.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
SELECT * FROM posts WHERE created_at > ? 8 ms 7.3%
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 > ? 24 ms 22.0%
home#api_complex 109 ms 100.0%
users/index 27 ms 24.7%
SELECT * FROM users WHERE id = ? 23 ms 21.1%
SELECT name FROM users 20 ms 18.3%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 25 ms 22.9%
home#api_complex 109 ms 100.0%
home#api_complex 109 ms 100.0%
posts/show 37 ms 33.9%
home#api_complex 109 ms 100.0%
home#api_complex 109 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 > ? 17 ms 15.6%
layouts/application 39 ms 35.7%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 1 ms 0.9%
home#api_complex 109 ms 100.0%