Request Details

Route
/slow GET
Timestamp
Nov 09, 2026 7:50 AM
Duration
1040.37 ms
Status
204
Response Size
60 KB
Error
No

Performance Breakdown

Database
1.8% (11 queries)
View Rendering
1.3%
Application Logic
96.9%
Other Operations
0.0%
Total Operations
30
Slowest Operation
1040.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 2952.0ms 5904.0ms 8856.0ms 11808.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
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 4 ms 0.4%
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... 15 ms 1.4%
home#slow 1040 ms 100.0%
home#slow 1040 ms 100.0%
home#slow 1040 ms 100.0%
posts/show 12 ms 1.2%
home/index 7 ms 0.7%
users/index 8 ms 0.8%
posts/show 31 ms 3.0%
home#slow 1040 ms 100.0%
home#slow 1040 ms 100.0%
home#slow 1040 ms 100.0%
SELECT * FROM posts WHERE created_at > ? 34 ms 3.3%
home#slow 1040 ms 100.0%
home/index 16 ms 1.5%
SELECT * FROM users WHERE id = ? 27 ms 2.6%
home/index 29 ms 2.8%
SELECT * FROM users WHERE id = ? 23 ms 2.2%
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... 23 ms 2.2%
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... 28 ms 2.7%
users/index 37 ms 3.6%
home#slow 1040 ms 100.0%
home#slow 1040 ms 100.0%
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... 9 ms 0.9%
home/index 15 ms 1.4%
home#slow 1040 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... 14 ms 1.3%
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... 8 ms 0.8%
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... 24 ms 2.3%
home#slow 1040 ms 100.0%