Request Details

Route
/slow GET
Timestamp
Sep 22, 2026 5:49 PM
Duration
556.79 ms
Status
204
Response Size
73 KB
Error
No

Performance Breakdown

Database
4.1% (13 queries)
View Rendering
2.3%
Application Logic
93.5%
Other Operations
0.0%
Total Operations
27
Slowest Operation
556.79 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 1339.3ms 2678.5ms 4017.8ms 5357.1ms

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 title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 35 ms 6.3%
SELECT name FROM users 28 ms 5.0%
home#slow 557 ms 100.0%
home#slow 557 ms 100.0%
SELECT name FROM users 27 ms 4.8%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 16 ms 2.9%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 3 ms 0.5%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 5 ms 0.9%
home#slow 557 ms 100.0%
home#slow 557 ms 100.0%
posts/show 17 ms 3.1%
users/index 15 ms 2.7%
home/index 31 ms 5.6%
home#slow 557 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 20 ms 3.6%
home#slow 557 ms 100.0%
SELECT * FROM users WHERE id = ? 9 ms 1.6%
users/index 33 ms 5.9%
SELECT id, name FROM users WHERE email = ? 10 ms 1.8%
home#slow 557 ms 100.0%
home#slow 557 ms 100.0%
home#slow 557 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... 9 ms 1.6%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 34 ms 6.1%
home/index 29 ms 5.2%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 21 ms 3.8%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 4 ms 0.7%