Request Details

Route
/slow GET
Timestamp
Nov 18, 2026 12:52 PM
Duration
219.52 ms
Status
204
Response Size
52 KB
Error
No

Performance Breakdown

Database
12.5% (15 queries)
View Rendering
10.6%
Application Logic
77.0%
Other Operations
0.0%
Total Operations
30
Slowest Operation
219.52 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 499.2ms 998.3ms 1497.5ms 1996.6ms

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/index 22 ms 10.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 9 ms 4.1%
home/index 33 ms 15.0%
layouts/application 5 ms 2.3%
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... 35 ms 15.9%
home#slow 220 ms 100.0%
DELETE FROM posts WHERE id = ? 3 ms 1.4%
home#slow 220 ms 100.0%
SELECT * FROM users WHERE id = ? 18 ms 8.2%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 3 ms 1.4%
SELECT name FROM users 16 ms 7.3%
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... 17 ms 7.7%
posts/show 38 ms 17.3%
layouts/application 39 ms 17.8%
posts/show 7 ms 3.2%
home#slow 220 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... 12 ms 5.5%
home#slow 220 ms 100.0%
UPDATE posts SET view_count = view_count + ? WHERE published = ? 17 ms 7.7%
SELECT name FROM users 8 ms 3.6%
home/index 38 ms 17.3%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 32 ms 14.6%
home#slow 220 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... 16 ms 7.3%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 28 ms 12.8%
home#slow 220 ms 100.0%
SELECT name FROM users 31 ms 14.1%
posts/show 29 ms 13.2%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 4 ms 1.8%
home#slow 220 ms 100.0%