Request Details

Route
/slow GET
Timestamp
Sep 22, 2026 9:31 PM
Duration
178.31 ms
Status
200
Response Size
170 KB
Error
No

Performance Breakdown

Database
9.5% (9 queries)
View Rendering
6.5%
Application Logic
83.9%
Other Operations
0.0%
Total Operations
30
Slowest Operation
178.31 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 584.1ms 1168.2ms 1752.3ms 2336.4ms

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 10 ms 5.6%
home#slow 178 ms 100.0%
home#slow 178 ms 100.0%
SELECT * FROM posts WHERE created_at > ? 26 ms 14.6%
home#slow 178 ms 100.0%
home/index 39 ms 21.9%
users/index 13 ms 7.3%
posts/show 32 ms 17.9%
posts/show 5 ms 2.8%
SELECT * FROM users WHERE id = ? 31 ms 17.4%
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 > ? 20 ms 11.2%
DELETE FROM posts WHERE id = ? 33 ms 18.5%
SELECT users.*, COUNT(DISTINCT posts.id) as post_count, COUNT(DISTINCT comments.id) as comment_count, SUM(posts.view_count) as total_views, AVG(posts.view_count) as avg_views, MIN(posts.created_at) as first_post, MAX(posts.created_at) as latest_post FR... 27 ms 15.1%
home#slow 178 ms 100.0%
home#slow 178 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 12 ms 6.7%
home#slow 178 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 > ? 29 ms 16.3%
home#slow 178 ms 100.0%
SELECT name FROM users 23 ms 12.9%
posts/show 14 ms 7.9%
SELECT * FROM users WHERE id = ? 22 ms 12.3%
home#slow 178 ms 100.0%
users/index 8 ms 4.5%
home#slow 178 ms 100.0%
layouts/application 9 ms 5.0%
home#slow 178 ms 100.0%
home/index 16 ms 9.0%
posts/show 6 ms 3.4%
home#slow 178 ms 100.0%