Request Details

Route
/api_complex GET
Timestamp
Nov 11, 2026 5:03 AM
Duration
190.4 ms
Status
200
Response Size
50 KB
Error
No

Performance Breakdown

Database
6.7% (5 queries)
View Rendering
13.4%
Application Logic
79.9%
Other Operations
0.0%
Total Operations
18
Slowest Operation
190.4 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 357.3ms 714.7ms 1072.0ms 1429.4ms

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
posts/show 30 ms 15.8%
SELECT * FROM posts WHERE created_at > ? 21 ms 11.0%
home#api_complex 190 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 8 ms 4.2%
users/index 40 ms 21.0%
home#api_complex 190 ms 100.0%
home/index 35 ms 18.4%
posts/show 5 ms 2.6%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 29 ms 15.2%
SELECT * FROM posts WHERE created_at > ? 15 ms 7.9%
SELECT users.*, COUNT(DISTINCT posts.id) as post_count, COUNT(DISTINCT comments.id) as comment_count, SUM(posts.view_count) as total_views, AVG(posts.view_count) as avg_views, MIN(posts.created_at) as first_post, MAX(posts.created_at) as latest_post FR... 23 ms 12.1%
users/index 35 ms 18.4%
home#api_complex 190 ms 100.0%
home#api_complex 190 ms 100.0%
home#api_complex 190 ms 100.0%
home/index 26 ms 13.7%
home#api_complex 190 ms 100.0%
users/index 20 ms 10.5%