Request Details

Route
/slow GET
Timestamp
Sep 19, 2026 3:52 PM
Duration
593.43 ms
Status
201
Response Size
57 KB
Error
No

Performance Breakdown

Database
2.2% (7 queries)
View Rendering
4.0%
Application Logic
93.8%
Other Operations
0.0%
Total Operations
24
Slowest Operation
593.43 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 1265.1ms 2530.2ms 3795.4ms 5060.5ms

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 40 ms 6.7%
home/index 14 ms 2.4%
home/index 12 ms 2.0%
home#slow 593 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... 24 ms 4.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... 18 ms 3.0%
home#slow 593 ms 100.0%
posts/show 21 ms 3.5%
posts/show 22 ms 3.7%
home/index 21 ms 3.5%
posts/show 10 ms 1.7%
home#slow 593 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 22 ms 3.7%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 12 ms 2.0%
home/index 28 ms 4.7%
home#slow 593 ms 100.0%
home#slow 593 ms 100.0%
home#slow 593 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 15 ms 2.5%
home#slow 593 ms 100.0%
SELECT * FROM posts WHERE created_at > ? 11 ms 1.9%
home#slow 593 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 9 ms 1.5%
layouts/application 34 ms 5.7%