Request Details

Route
/api_complex GET
Timestamp
Nov 08, 2026 9:27 PM
Duration
98.86 ms
Status
201
Response Size
45 KB
Error
No

Performance Breakdown

Database
11.1% (7 queries)
View Rendering
18.8%
Application Logic
70.1%
Other Operations
0.0%
Total Operations
25
Slowest Operation
98.86 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 282.0ms 563.9ms 845.9ms 1127.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 posts.* FROM posts WHERE title LIKE ? OR content LIKE ? 23 ms 23.3%
layouts/application 25 ms 25.3%
home/index 5 ms 5.1%
home#api_complex 99 ms 100.0%
posts/show 40 ms 40.5%
users/index 15 ms 15.2%
home#api_complex 99 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 17 ms 17.2%
posts/show 12 ms 12.1%
home#api_complex 99 ms 100.0%
home#api_complex 99 ms 100.0%
layouts/application 22 ms 22.3%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 15 ms 15.2%
home/index 15 ms 15.2%
SELECT * FROM (SELECT users.id, users.name, users.email, COUNT(posts.id) as post_count FROM users LEFT JOIN posts ON users.id = posts.user_id WHERE users.active = ? GROUP BY users.id) as user_posts JOIN (SELECT user_id, COUNT(*) as comment_count FROM c... 4 ms 4.0%
home#api_complex 99 ms 100.0%
home#api_complex 99 ms 100.0%
SELECT * FROM posts WHERE created_at > ? 18 ms 18.2%
SELECT name FROM users 15 ms 15.2%
home/index 36 ms 36.4%
home#api_complex 99 ms 100.0%
users/index 8 ms 8.1%
layouts/application 34 ms 34.4%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 33 ms 33.4%
home#api_complex 99 ms 100.0%