Request Details

Route
/slow GET
Timestamp
Sep 22, 2026 6:26 PM
Duration
610.92 ms
Status
204
Response Size
160 KB
Error
No

Performance Breakdown

Database
7.5% (13 queries)
View Rendering
2.8%
Application Logic
89.7%
Other Operations
0.0%
Total Operations
25
Slowest Operation
610.92 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 851.2ms 1702.3ms 2553.5ms 3404.6ms

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 posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 12 ms 2.0%
home/index 12 ms 2.0%
posts/show 17 ms 2.8%
SELECT * FROM posts WHERE created_at > ? 3 ms 0.5%
layouts/application 11 ms 1.8%
home#slow 611 ms 100.0%
layouts/application 6 ms 1.0%
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... 34 ms 5.6%
SELECT name FROM users 6 ms 1.0%
home#slow 611 ms 100.0%
home#slow 611 ms 100.0%
layouts/application 8 ms 1.3%
DELETE FROM comments WHERE created_at < ? 17 ms 2.8%
home#slow 611 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... 3 ms 0.5%
home#slow 611 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 22 ms 3.6%
SELECT posts.* FROM posts WHERE title LIKE ? OR content LIKE ? 14 ms 2.3%
SELECT name FROM users 15 ms 2.5%
DELETE FROM posts WHERE id = ? 31 ms 5.1%
SELECT COUNT(*) FROM comments WHERE post_id = ? 29 ms 4.7%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 34 ms 5.6%
layouts/application 17 ms 2.8%
layouts/application 25 ms 4.1%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 34 ms 5.6%