Request Details

Route
/api_complex GET
Timestamp
Sep 23, 2026 8:57 AM
Duration
251.27 ms
Status
200
Response Size
34 KB
Error
No

Performance Breakdown

Database
3.9% (3 queries)
View Rendering
7.1%
Application Logic
89.0%
Other Operations
0.0%
Total Operations
15
Slowest Operation
251.27 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 423.4ms 846.8ms 1270.2ms 1693.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 10 ms 4.0%
SELECT name FROM users 28 ms 11.1%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 20 ms 8.0%
users/index 29 ms 11.5%
home#api_complex 251 ms 100.0%
home/index 5 ms 2.0%
home/index 19 ms 7.6%
home#api_complex 251 ms 100.0%
home#api_complex 251 ms 100.0%
home#api_complex 251 ms 100.0%
posts/show 27 ms 10.7%
home/index 30 ms 11.9%
home#api_complex 251 ms 100.0%
home#api_complex 251 ms 100.0%
UPDATE posts SET view_count = view_count + ? WHERE published = ? 18 ms 7.2%