Request Details

Route
/slow GET
Timestamp
Sep 23, 2026 1:20 AM
Duration
330.82 ms
Status
201
Response Size
88 KB
Error
No

Performance Breakdown

Database
7.7% (12 queries)
View Rendering
6.8%
Application Logic
85.5%
Other Operations
0.0%
Total Operations
29
Slowest Operation
330.82 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 677.4ms 1354.9ms 2032.3ms 2709.7ms

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 * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 34 ms 10.3%
home#slow 331 ms 100.0%
UPDATE posts SET title = ?, content = ?, updated_at = ? WHERE id = ? 21 ms 6.3%
home#slow 331 ms 100.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... 1 ms 0.3%
home#slow 331 ms 100.0%
home#slow 331 ms 100.0%
SELECT * FROM posts WHERE created_at > ? 2 ms 0.6%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 18 ms 5.4%
layouts/application 26 ms 7.9%
home/index 28 ms 8.5%
home/index 35 ms 10.6%
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... 27 ms 8.2%
home/index 9 ms 2.7%
home#slow 331 ms 100.0%
home#slow 331 ms 100.0%
home/index 10 ms 3.0%
home/index 12 ms 3.6%
SELECT * FROM posts WHERE created_at > ? 35 ms 10.6%
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... 3 ms 0.9%
SELECT * FROM posts WHERE created_at > ? 17 ms 5.1%
home#slow 331 ms 100.0%
layouts/application 12 ms 3.6%
SELECT name FROM users 32 ms 9.7%
DELETE FROM posts WHERE id = ? 1 ms 0.3%
posts/show 20 ms 6.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 > ? 19 ms 5.7%
posts/show 10 ms 3.0%
layouts/application 22 ms 6.7%