Request Details

Route
/slow GET
Timestamp
Nov 16, 2026 11:47 PM
Duration
409.78 ms
Status
200
Response Size
130 KB
Error
No

Performance Breakdown

Database
6.2% (11 queries)
View Rendering
7.1%
Application Logic
86.7%
Other Operations
0.0%
Total Operations
28
Slowest Operation
409.78 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 944.8ms 1889.6ms 2834.4ms 3779.3ms

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 410 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 28 ms 6.8%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 28 ms 6.8%
home#slow 410 ms 100.0%
users/index 6 ms 1.5%
home/index 40 ms 9.8%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 35 ms 8.5%
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... 30 ms 7.3%
SELECT name FROM users 30 ms 7.3%
home/index 26 ms 6.3%
home/index 37 ms 9.0%
home/index 38 ms 9.3%
posts/show 26 ms 6.3%
SELECT id, name, email FROM users WHERE id = ? 27 ms 6.6%
home/index 24 ms 5.9%
users/index 35 ms 8.5%
home/index 35 ms 8.5%
home#slow 410 ms 100.0%
home#slow 410 ms 100.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 > ? 16 ms 3.9%
home#slow 410 ms 100.0%
SELECT name FROM users 2 ms 0.5%
home#slow 410 ms 100.0%
SELECT COUNT(*) FROM comments WHERE post_id = ? 13 ms 3.2%
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... 6 ms 1.5%
SELECT * FROM users WHERE id = ? 19 ms 4.6%
home#slow 410 ms 100.0%
home#slow 410 ms 100.0%