Request Details

Route
/slow GET
Timestamp
Sep 18, 2026 3:12 AM
Duration
546.29 ms
Status
201
Response Size
150 KB
Error
No

Performance Breakdown

Database
3.5% (8 queries)
View Rendering
4.1%
Application Logic
92.4%
Other Operations
0.0%
Total Operations
22
Slowest Operation
546.29 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 1034.5ms 2069.0ms 3103.5ms 4138.0ms

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 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... 26 ms 4.8%
layouts/application 32 ms 5.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... 14 ms 2.6%
home/index 6 ms 1.1%
home#slow 546 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 > ? 17 ms 3.1%
home#slow 546 ms 100.0%
SELECT name FROM users 18 ms 3.3%
posts/show 10 ms 1.8%
home/index 32 ms 5.9%
home#slow 546 ms 100.0%
home#slow 546 ms 100.0%
SELECT posts.* FROM posts WHERE title LIKE ? OR content LIKE ? 20 ms 3.7%
posts/show 20 ms 3.7%
home/index 33 ms 6.0%
home#slow 546 ms 100.0%
SELECT COUNT(*) FROM comments WHERE post_id = ? 29 ms 5.3%
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 1.3%
home#slow 546 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 > ? 12 ms 2.2%
home#slow 546 ms 100.0%
posts/show 38 ms 7.0%