Request Details

Route
/api_complex GET
Timestamp
Nov 20, 2026 2:08 PM
Duration
264.0 ms
Status
201
Response Size
18 KB
Error
No

Performance Breakdown

Database
46.4% (8 queries)
View Rendering
53.6%
Application Logic
0.0%
Other Operations
0.0%
Total Operations
17
Slowest Operation
38.0 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
View
Database
0.0ms 97.0ms 194.0ms 291.0ms 388.0ms

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
users/index 23 ms 8.7%
posts/show 38 ms 14.4%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 15 ms 5.7%
SELECT posts.* FROM posts WHERE title LIKE ? OR content LIKE ? 6 ms 2.3%
layouts/application 34 ms 12.9%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 34 ms 12.9%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 4 ms 1.5%
users/index 10 ms 3.8%
SELECT * FROM (SELECT users.id, users.name, users.email, COUNT(posts.id) as post_count FROM users LEFT JOIN posts ON users.id = posts.user_id WHERE users.active = ? GROUP BY users.id) as user_posts JOIN (SELECT user_id, COUNT(*) as comment_count FROM c... 35 ms 13.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 > ? 18 ms 6.8%
layouts/application 37 ms 14.0%
posts/show 14 ms 5.3%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 33 ms 12.5%
SELECT * FROM (SELECT users.id, users.name, users.email, COUNT(posts.id) as post_count FROM users LEFT JOIN posts ON users.id = posts.user_id WHERE users.active = ? GROUP BY users.id) as user_posts JOIN (SELECT user_id, COUNT(*) as comment_count FROM c... 35 ms 13.3%
users/index 11 ms 4.2%
posts/show 33 ms 12.5%
home/index 8 ms 3.0%