Request Details

Route
/api_complex GET
Timestamp
Nov 21, 2026 3:20 PM
Duration
126.19 ms
Status
204
Response Size
14 KB
Error
No

Performance Breakdown

Database
16.2% (9 queries)
View Rendering
20.4%
Application Logic
63.4%
Other Operations
0.0%
Total Operations
23
Slowest Operation
126.19 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 248.7ms 497.5ms 746.2ms 994.9ms

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 name FROM users 15 ms 11.9%
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... 23 ms 18.2%
posts/show 7 ms 5.5%
SELECT name FROM users 4 ms 3.2%
layouts/application 38 ms 30.1%
posts/show 16 ms 12.7%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 15 ms 11.9%
posts/show 20 ms 15.8%
home#api_complex 126 ms 100.0%
home#api_complex 126 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 22 ms 17.4%
SELECT * FROM users WHERE id = ? 14 ms 11.1%
posts/show 14 ms 11.1%
home#api_complex 126 ms 100.0%
home#api_complex 126 ms 100.0%
posts/show 32 ms 25.4%
home#api_complex 126 ms 100.0%
posts/show 26 ms 20.6%
layouts/application 35 ms 27.7%
SELECT * FROM posts WHERE created_at > ? 33 ms 26.2%
SELECT * FROM users WHERE id = ? 30 ms 23.8%
posts/show 15 ms 11.9%
SELECT name FROM users 5 ms 4.0%