Request Details

Route
/slow GET
Timestamp
Nov 18, 2026 12:51 AM
Duration
170.45 ms
Status
200
Response Size
54 KB
Error
No

Performance Breakdown

Database
8.9% (10 queries)
View Rendering
13.8%
Application Logic
77.3%
Other Operations
0.0%
Total Operations
29
Slowest Operation
170.45 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 496.0ms 992.0ms 1488.0ms 1984.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
posts/show 39 ms 22.9%
home#slow 170 ms 100.0%
SELECT * FROM posts WHERE created_at > ? 12 ms 7.0%
users/index 22 ms 12.9%
layouts/application 13 ms 7.6%
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 > ? 22 ms 12.9%
home#slow 170 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 23 ms 13.5%
home#slow 170 ms 100.0%
layouts/application 34 ms 19.9%
home#slow 170 ms 100.0%
home/index 33 ms 19.4%
home#slow 170 ms 100.0%
SELECT * FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id LEFT JOIN tags ON posts.id = tags.post_id LEFT JOIN categories ON posts.category_id = categories.id WHERE users.active = ? AND posts.publi... 24 ms 14.1%
home#slow 170 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... 6 ms 3.5%
layouts/application 18 ms 10.6%
home#slow 170 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 29 ms 17.0%
home/index 36 ms 21.1%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 19 ms 11.1%
SELECT * FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id LEFT JOIN tags ON posts.id = tags.post_id LEFT JOIN categories ON posts.category_id = categories.id WHERE users.active = ? AND posts.publi... 20 ms 11.7%
home#slow 170 ms 100.0%
layouts/application 33 ms 19.4%
users/index 37 ms 21.7%
home/index 9 ms 5.3%
home#slow 170 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... 9 ms 5.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 > ? 12 ms 7.0%