Request Details

Route
/slow GET
Timestamp
Sep 20, 2026 9:47 PM
Duration
397.93 ms
Status
200
Response Size
190 KB
Error
No

Performance Breakdown

Database
4.4% (10 queries)
View Rendering
5.5%
Application Logic
90.1%
Other Operations
0.0%
Total Operations
28
Slowest Operation
397.93 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 994.1ms 1988.2ms 2982.3ms 3976.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
home#slow 398 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 16 ms 4.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 17 ms 4.3%
home/index 14 ms 3.5%
posts/show 24 ms 6.0%
home#slow 398 ms 100.0%
home#slow 398 ms 100.0%
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... 4 ms 1.0%
SELECT name FROM users 25 ms 6.3%
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... 3 ms 0.8%
SELECT name FROM users 12 ms 3.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 26 ms 6.5%
home/index 6 ms 1.5%
home#slow 398 ms 100.0%
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... 19 ms 4.8%
home#slow 398 ms 100.0%
users/index 36 ms 9.0%
layouts/application 30 ms 7.5%
home#slow 398 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 21 ms 5.3%
SELECT * FROM users WHERE id = ? 32 ms 8.0%
home#slow 398 ms 100.0%
home#slow 398 ms 100.0%
home#slow 398 ms 100.0%
layouts/application 39 ms 9.8%
layouts/application 19 ms 4.8%
posts/show 37 ms 9.3%
posts/show 15 ms 3.8%