Request Details

Route
/slow GET
Timestamp
Nov 13, 2026 7:32 AM
Duration
373.81 ms
Status
204
Response Size
150 KB
Error
No

Performance Breakdown

Database
6.3% (11 queries)
View Rendering
3.5%
Application Logic
90.3%
Other Operations
0.0%
Total Operations
21
Slowest Operation
373.81 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 621.2ms 1242.4ms 1863.7ms 2484.9ms

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... 7 ms 1.9%
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 > ? 1 ms 0.3%
SELECT * FROM users WHERE id = ? 18 ms 4.8%
home#slow 374 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 1 ms 0.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... 13 ms 3.5%
home#slow 374 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... 20 ms 5.4%
home#slow 374 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 17 ms 4.5%
home#slow 374 ms 100.0%
SELECT posts.* FROM posts WHERE title LIKE ? OR content LIKE ? 22 ms 5.9%
home/index 16 ms 4.3%
home#slow 374 ms 100.0%
home#slow 374 ms 100.0%
SELECT * FROM posts WHERE created_at > ? 27 ms 7.2%
home/index 31 ms 8.3%
home/index 24 ms 6.4%
SELECT * FROM users WHERE id = ? 19 ms 5.1%
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 > ? 11 ms 2.9%
posts/show 15 ms 4.0%