Request Details

Route
/slow GET
Timestamp
Sep 21, 2026 2:03 PM
Duration
333.03 ms
Status
204
Response Size
56 KB
Error
No

Performance Breakdown

Database
6.4% (11 queries)
View Rendering
6.9%
Application Logic
86.7%
Other Operations
0.0%
Total Operations
30
Slowest Operation
333.03 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 864.1ms 1728.1ms 2592.2ms 3456.2ms

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 18 ms 5.4%
home#slow 333 ms 100.0%
SELECT * FROM users WHERE id = ? 11 ms 3.3%
home#slow 333 ms 100.0%
UPDATE posts SET view_count = view_count + ? WHERE published = ? 22 ms 6.6%
home/index 23 ms 6.9%
home/index 5 ms 1.5%
home#slow 333 ms 100.0%
UPDATE posts SET view_count = view_count + ? WHERE published = ? 11 ms 3.3%
home/index 23 ms 6.9%
home#slow 333 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 9.6%
layouts/application 34 ms 10.2%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 26 ms 7.8%
home#slow 333 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 22 ms 6.6%
home#slow 333 ms 100.0%
layouts/application 32 ms 9.6%
users/index 19 ms 5.7%
home#slow 333 ms 100.0%
SELECT * FROM posts WHERE created_at > ? 2 ms 0.6%
SELECT * FROM users WHERE id = ? 14 ms 4.2%
home#slow 333 ms 100.0%
users/index 38 ms 11.4%
home#slow 333 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... 34 ms 10.2%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 22 ms 6.6%
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 7.2%
posts/show 23 ms 6.9%
posts/show 24 ms 7.2%