Request Details

Route
/slow GET
Timestamp
Sep 23, 2026 2:09 AM
Duration
338.35 ms
Status
204
Response Size
160 KB
Error
No

Performance Breakdown

Database
4.0% (11 queries)
View Rendering
3.3%
Application Logic
92.7%
Other Operations
0.0%
Total Operations
28
Slowest Operation
338.35 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 1094.8ms 2189.6ms 3284.4ms 4379.2ms

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 338 ms 100.0%
home#slow 338 ms 100.0%
home#slow 338 ms 100.0%
UPDATE posts SET view_count = view_count + ? WHERE published = ? 33 ms 9.8%
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... 2 ms 0.6%
home#slow 338 ms 100.0%
home#slow 338 ms 100.0%
home#slow 338 ms 100.0%
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ? 6 ms 1.8%
home#slow 338 ms 100.0%
SELECT id, name, email FROM users WHERE id = ? 14 ms 4.1%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 1 ms 0.3%
posts/show 40 ms 11.8%
posts/show 29 ms 8.6%
layouts/application 17 ms 5.0%
SELECT * FROM users WHERE id = ? 9 ms 2.7%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 23 ms 6.8%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 22 ms 6.5%
SELECT * FROM posts WHERE created_at > ? 16 ms 4.7%
SELECT * FROM posts WHERE created_at > ? 31 ms 9.2%
home#slow 338 ms 100.0%
home#slow 338 ms 100.0%
SELECT name FROM users 18 ms 5.3%
home#slow 338 ms 100.0%
home#slow 338 ms 100.0%
users/index 24 ms 7.1%
layouts/application 34 ms 10.0%
home#slow 338 ms 100.0%