Request Details

Route
/slow GET
Timestamp
Nov 21, 2026 12:55 PM
Duration
380.0 ms
Status
201
Response Size
91 KB
Error
No

Performance Breakdown

Database
5.8% (11 queries)
View Rendering
6.5%
Application Logic
87.8%
Other Operations
0.0%
Total Operations
27
Slowest Operation
380.0 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 757.7ms 1515.5ms 2273.2ms 3031.0ms

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 380 ms 100.0%
home#slow 380 ms 100.0%
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... 13 ms 3.4%
SELECT name FROM users 27 ms 7.1%
UPDATE posts SET view_count = view_count + ? WHERE published = ? 28 ms 7.4%
SELECT * FROM posts WHERE created_at > ? 10 ms 2.6%
home/index 35 ms 9.2%
layouts/application 25 ms 6.6%
layouts/application 24 ms 6.3%
UPDATE posts SET view_count = view_count + ? WHERE published = ? 29 ms 7.6%
users/index 11 ms 2.9%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 27 ms 7.1%
SELECT * FROM posts WHERE created_at > ? 17 ms 4.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... 7 ms 1.8%
home/index 10 ms 2.6%
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... 4 ms 1.1%
home#slow 380 ms 100.0%
home/index 22 ms 5.8%
home#slow 380 ms 100.0%
home#slow 380 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 1 ms 0.3%
home/index 11 ms 2.9%
home#slow 380 ms 100.0%
posts/show 23 ms 6.1%
home#slow 380 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... 12 ms 3.2%
users/index 35 ms 9.2%