Request Details

Route
/slow GET
Timestamp
Sep 09, 2026 6:00 PM
Duration
435.49 ms
Status
204
Response Size
140 KB
Error
No

Performance Breakdown

Database
4.2% (12 queries)
View Rendering
5.0%
Application Logic
90.7%
Other Operations
0.0%
Total Operations
29
Slowest Operation
435.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 960.0ms 1920.0ms 2880.0ms 3839.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
home#slow 435 ms 100.0%
home#slow 435 ms 100.0%
home#slow 435 ms 100.0%
layouts/application 5 ms 1.1%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 9 ms 2.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 > ? 4 ms 0.9%
home/index 26 ms 6.0%
home#slow 435 ms 100.0%
home/index 17 ms 3.9%
users/index 9 ms 2.1%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 7 ms 1.6%
SELECT * FROM (SELECT users.id, users.name, users.email, COUNT(posts.id) as post_count FROM users LEFT JOIN posts ON users.id = posts.user_id WHERE users.active = ? GROUP BY users.id) as user_posts JOIN (SELECT user_id, COUNT(*) as comment_count FROM c... 23 ms 5.3%
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... 13 ms 3.0%
SELECT * FROM posts WHERE created_at > ? 15 ms 3.4%
SELECT name FROM users 32 ms 7.3%
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... 28 ms 6.4%
users/index 28 ms 6.4%
home#slow 435 ms 100.0%
posts/show 35 ms 8.0%
SELECT name FROM users 12 ms 2.8%
home#slow 435 ms 100.0%
home#slow 435 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... 6 ms 1.4%
posts/show 39 ms 9.0%
SELECT id, name, email FROM users WHERE id = ? 2 ms 0.5%
posts/show 10 ms 2.3%
home#slow 435 ms 100.0%
users/index 24 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... 12 ms 2.8%