Request Details

Route
/slow GET
Timestamp
Sep 12, 2026 5:44 AM
Duration
331.43 ms
Status
204
Response Size
170 KB
Error
No

Performance Breakdown

Database
4.9% (9 queries)
View Rendering
9.3%
Application Logic
85.8%
Other Operations
0.0%
Total Operations
27
Slowest Operation
331.43 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 772.9ms 1545.7ms 2318.6ms 3091.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 331 ms 100.0%
home#slow 331 ms 100.0%
SELECT * FROM users WHERE id = ? 21 ms 6.3%
users/index 26 ms 7.8%
home#slow 331 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 > ? 24 ms 7.2%
SELECT * FROM users WHERE id = ? 17 ms 5.1%
home#slow 331 ms 100.0%
home#slow 331 ms 100.0%
home#slow 331 ms 100.0%
home/index 31 ms 9.4%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 5 ms 1.5%
home/index 37 ms 11.2%
home#slow 331 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 19 ms 5.7%
home#slow 331 ms 100.0%
users/index 18 ms 5.4%
users/index 22 ms 6.6%
home/index 37 ms 11.2%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 19 ms 5.7%
layouts/application 29 ms 8.8%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 19 ms 5.7%
home/index 38 ms 11.5%
home/index 36 ms 10.9%
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... 7 ms 2.1%
home/index 13 ms 3.9%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 22 ms 6.6%