Request Details

Route
/slow GET
Timestamp
Nov 20, 2026 10:18 PM
Duration
418.75 ms
Status
204
Response Size
77 KB
Error
No

Performance Breakdown

Database
5.1% (7 queries)
View Rendering
2.8%
Application Logic
92.0%
Other Operations
0.0%
Total Operations
20
Slowest Operation
418.75 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 910.0ms 1820.0ms 2730.0ms 3640.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 16 ms 3.8%
home#slow 419 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... 19 ms 4.5%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 33 ms 7.9%
home#slow 419 ms 100.0%
home#slow 419 ms 100.0%
home#slow 419 ms 100.0%
home#slow 419 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... 23 ms 5.5%
SELECT users.*, posts.*, comments.*, COUNT(DISTINCT posts.id) as post_count, COUNT(DISTINCT comments.id) as comment_count, AVG(posts.view_count) as avg_views, MAX(comments.created_at) as latest_comment FROM users LEFT JOIN posts ON users.id = posts.use... 25 ms 6.0%
home/index 23 ms 5.5%
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... 29 ms 6.9%
home#slow 419 ms 100.0%
SELECT posts.* FROM posts WHERE title LIKE ? OR content LIKE ? 26 ms 6.2%
home#slow 419 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 > ? 32 ms 7.6%
home/index 22 ms 5.3%
home/index 31 ms 7.4%
home/index 11 ms 2.6%
home#slow 419 ms 100.0%