Request Details

Route
/slow GET
Timestamp
Sep 22, 2026 11:01 PM
Duration
285.37 ms
Status
201
Response Size
110 KB
Error
No

Performance Breakdown

Database
7.3% (12 queries)
View Rendering
7.4%
Application Logic
85.4%
Other Operations
0.0%
Total Operations
30
Slowest Operation
285.37 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 668.5ms 1337.0ms 2005.5ms 2674.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
home/index 12 ms 4.2%
home#slow 285 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 > ? 28 ms 9.8%
home#slow 285 ms 100.0%
layouts/application 25 ms 8.8%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 3 ms 1.1%
SELECT * FROM users WHERE id = ? 23 ms 8.1%
layouts/application 25 ms 8.8%
DELETE FROM posts WHERE id = ? 25 ms 8.8%
layouts/application 26 ms 9.1%
home/index 15 ms 5.3%
home#slow 285 ms 100.0%
posts/show 20 ms 7.0%
home#slow 285 ms 100.0%
home#slow 285 ms 100.0%
SELECT * FROM users WHERE id = ? 35 ms 12.3%
layouts/application 6 ms 2.1%
home#slow 285 ms 100.0%
SELECT * FROM users WHERE id = ? 8 ms 2.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... 19 ms 6.7%
SELECT * FROM posts WHERE created_at > ? 23 ms 8.1%
home/index 6 ms 2.1%
home#slow 285 ms 100.0%
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... 1 ms 0.4%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 1 ms 0.4%
home/index 26 ms 9.1%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 3 ms 1.1%
SELECT name FROM users 25 ms 8.8%
posts/show 36 ms 12.6%
home#slow 285 ms 100.0%