Request Details

Route
/slow GET
Timestamp
Sep 23, 2026 7:46 AM
Duration
304.23 ms
Status
200
Response Size
170 KB
Error
No

Performance Breakdown

Database
3.0% (8 queries)
View Rendering
3.9%
Application Logic
93.1%
Other Operations
0.0%
Total Operations
27
Slowest Operation
304.23 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 979.9ms 1959.9ms 2939.8ms 3919.8ms

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
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 13 ms 4.3%
home#slow 304 ms 100.0%
layouts/application 5 ms 1.6%
home/index 20 ms 6.6%
home/index 19 ms 6.2%
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 > ? 10 ms 3.3%
users/index 21 ms 6.9%
home#slow 304 ms 100.0%
home#slow 304 ms 100.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... 33 ms 10.8%
home#slow 304 ms 100.0%
home#slow 304 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 7 ms 2.3%
home#slow 304 ms 100.0%
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... 16 ms 5.3%
home#slow 304 ms 100.0%
home#slow 304 ms 100.0%
home#slow 304 ms 100.0%
SELECT COUNT(*) FROM comments WHERE post_id = ? 24 ms 7.9%
layouts/application 27 ms 8.9%
SELECT * FROM users WHERE id = ? 11 ms 3.6%
home#slow 304 ms 100.0%
home/index 21 ms 6.9%
home#slow 304 ms 100.0%
SELECT id, name FROM users WHERE email = ? 4 ms 1.3%
home#slow 304 ms 100.0%
posts/show 38 ms 12.5%