Request Details

Route
/slow GET
Timestamp
Nov 21, 2026 12:34 AM
Duration
200.49 ms
Status
201
Response Size
170 KB
Error
No

Performance Breakdown

Database
18.2% (12 queries)
View Rendering
12.2%
Application Logic
69.6%
Other Operations
0.0%
Total Operations
24
Slowest Operation
200.49 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 288.0ms 576.0ms 864.0ms 1151.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 name FROM users 1 ms 0.5%
users/index 9 ms 4.5%
layouts/application 10 ms 5.0%
home#slow 200 ms 100.0%
home#slow 200 ms 100.0%
home/index 18 ms 9.0%
home#slow 200 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... 10 ms 5.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 16.5%
SELECT * FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id LEFT JOIN tags ON posts.id = tags.post_id LEFT JOIN categories ON posts.category_id = categories.id WHERE users.active = ? AND posts.publi... 15 ms 7.5%
SELECT * FROM posts WHERE created_at > ? 4 ms 2.0%
layouts/application 29 ms 14.5%
layouts/application 13 ms 6.5%
SELECT * FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id LEFT JOIN tags ON posts.id = tags.post_id LEFT JOIN categories ON posts.category_id = categories.id WHERE users.active = ? AND posts.publi... 28 ms 14.0%
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... 31 ms 15.5%
SELECT name FROM users 14 ms 7.0%
users/index 11 ms 5.5%
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... 11 ms 5.5%
SELECT * FROM users WHERE id = ? 25 ms 12.5%
home#slow 200 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... 10 ms 5.0%
layouts/application 21 ms 10.5%
DELETE FROM comments WHERE created_at < ? 28 ms 14.0%
layouts/application 29 ms 14.5%