Request Details

Route
/api_complex GET
Timestamp
Nov 12, 2026 3:40 PM
Duration
118.88 ms
Status
204
Response Size
80 KB
Error
No

Performance Breakdown

Database
12.1% (4 queries)
View Rendering
22.3%
Application Logic
65.5%
Other Operations
0.0%
Total Operations
15
Slowest Operation
118.88 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 181.4ms 362.8ms 544.2ms 725.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
layouts/application 11 ms 9.3%
posts/show 38 ms 32.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 27 ms 22.7%
home#api_complex 119 ms 100.0%
posts/show 24 ms 20.2%
home#api_complex 119 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 > ? 21 ms 17.7%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 21 ms 17.7%
users/index 19 ms 16.0%
posts/show 27 ms 22.7%
layouts/application 18 ms 15.1%
home#api_complex 119 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 19 ms 16.0%
home#api_complex 119 ms 100.0%
users/index 25 ms 21.0%