P95 Query Time
35 ms
Compared to previous 7 days
Query Responses
Click marker to copy SHA
| Time Period ▼ | Executions | Avg Duration | Min Duration | Max Duration |
|---|---|---|---|---|
| Sep 23, 2026 | 2 | 25.5 ms | 24.0 ms | 27.0 ms |
| Sep 22, 2026 | 16 | 21.44 ms | 1.0 ms | 34.0 ms |
| Sep 21, 2026 | 12 | 17.25 ms | 1.0 ms | 33.0 ms |
| Sep 20, 2026 | 13 | 16.31 ms | 1.0 ms | 35.0 ms |
| Sep 19, 2026 | 15 | 22.47 ms | 9.0 ms | 35.0 ms |
| Sep 18, 2026 | 16 | 13.06 ms | 1.0 ms | 27.0 ms |
| Sep 17, 2026 | 10 | 15.6 ms | 3.0 ms | 32.0 ms |
| Sep 16, 2026 | 11 | 14.55 ms | 2.0 ms | 35.0 ms |
| Sep 15, 2026 | 9 | 22.22 ms | 9.0 ms | 33.0 ms |
| Sep 14, 2026 | 21 | 24.05 ms | 8.0 ms | 46.0 ms |
Total of 15 record(s).
Page 1 of 2
Normalized Query
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ?
Diagnostics
Query Characteristics
- Query Type
- SELECT
- Tables
- 2
- Joins
- 1
- Complexity Score
- 8
- Has LIMIT
- No
- Has ORDER BY
- No
- Has GROUP BY
- No
- Has Subqueries
- No
Optimization Suggestions
-
Add single_column index: add_index :posts, :published
— Fast lookups for published = value queries
add_index :posts, :published -
Add single_column index: add_index :posts, :user_id
— Fast JOIN execution
add_index :posts, :user_id
Execution Plan
3 | 0 | 216 | SCAN posts 7 | 0 | 45 | SEARCH users USING INTEGER PRIMARY KEY (rowid=?)
Query Locations
| Location | P95 Duration (ms) | P95 Row Count | Count |
|---|---|---|---|
app/models/application_record.rb:12 |
34.0 | — | 165 |
app/jobs/import_job.rb:10 |
25.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:41 |
10.0 | — | 1 |
app/jobs/cache_warming_job.rb:106 |
45.0 | — | 1 |
app/jobs/notification_job.rb:91 |
15.0 | — | 1 |
app/jobs/notification_job.rb:63 |
26.0 | — | 1 |
app/jobs/notification_job.rb:55 |
46.0 | — | 2 |
app/jobs/notification_job.rb:90 |
8.0 | — | 1 |
app/jobs/image_processing_job.rb:113 |
23.0 | — | 1 |
app/jobs/cache_warming_job.rb:96 |
42.0 | — | 1 |
app/jobs/notification_job.rb:42 |
43.0 | — | 1 |
app/jobs/report_generator_job.rb:18 |
26.0 | — | 1 |
app/jobs/report_generator_job.rb:86 |
47.0 | — | 1 |
app/jobs/report_generator_job.rb:87 |
8.0 | — | 1 |
app/jobs/cache_warming_job.rb:82 |
40.0 | — | 1 |
app/jobs/image_processing_job.rb:84 |
30.0 | — | 1 |
app/mailers/user_mailer.rb:19 |
50.0 | — | 1 |
app/jobs/notification_job.rb:18 |
4.0 | — | 1 |
app/jobs/cache_warming_job.rb:83 |
27.0 | — | 1 |
app/jobs/data_export_job.rb:84 |
10.0 | — | 1 |
app/jobs/cache_warming_job.rb:13 |
37.0 | — | 1 |
app/jobs/cache_warming_job.rb:85 |
39.0 | — | 1 |
app/jobs/image_processing_job.rb:13 |
12.0 | — | 1 |
app/jobs/notification_job.rb:79 |
32.0 | — | 1 |
app/jobs/cache_warming_job.rb:55 |
22.0 | — | 1 |
app/jobs/notification_job.rb:34 |
37.0 | — | 1 |
app/jobs/cache_warming_job.rb:14 |
30.0 | — | 1 |
app/jobs/import_job.rb:19 |
19.0 | — | 1 |
app/mailers/user_mailer.rb:116 |
36.0 | — | 1 |
Raw Data
{
"query": {
"id": 118,
"normalized_sql": "SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ?",
"analyzed_at": "2026-09-23 08:02:23 UTC"
},
"performance": {
"total_executions": 194,
"p95_duration_ms": "37.0",
"avg_duration_ms": 19.5258,
"p95_row_count": null,
"avg_row_count": null
},
"characteristics": {
"query_type": "SELECT",
"table_count": 2,
"join_count": 1,
"where_clause_complexity": 1,
"has_subqueries": false,
"has_limit": false,
"has_order_by": false,
"has_group_by": false,
"has_having": false,
"has_distinct": false,
"has_aggregations": false,
"estimated_complexity": 8
},
"call_locations": [
{
"location": "app/models/application_record.rb:12",
"count": 165,
"p95_duration_ms": "34.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:55",
"count": 2,
"p95_duration_ms": "46.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:116",
"count": 1,
"p95_duration_ms": "36.0",
"p95_row_count": null
},
{
"location": "app/jobs/import_job.rb:19",
"count": 1,
"p95_duration_ms": "19.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:14",
"count": 1,
"p95_duration_ms": "30.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:34",
"count": 1,
"p95_duration_ms": "37.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:55",
"count": 1,
"p95_duration_ms": "22.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:79",
"count": 1,
"p95_duration_ms": "32.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:13",
"count": 1,
"p95_duration_ms": "12.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:85",
"count": 1,
"p95_duration_ms": "39.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:13",
"count": 1,
"p95_duration_ms": "37.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:84",
"count": 1,
"p95_duration_ms": "10.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:83",
"count": 1,
"p95_duration_ms": "27.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:18",
"count": 1,
"p95_duration_ms": "4.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:19",
"count": 1,
"p95_duration_ms": "50.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:84",
"count": 1,
"p95_duration_ms": "30.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:82",
"count": 1,
"p95_duration_ms": "40.0",
"p95_row_count": null
},
{
"location": "app/jobs/report_generator_job.rb:87",
"count": 1,
"p95_duration_ms": "8.0",
"p95_row_count": null
},
{
"location": "app/jobs/report_generator_job.rb:86",
"count": 1,
"p95_duration_ms": "47.0",
"p95_row_count": null
},
{
"location": "app/jobs/report_generator_job.rb:18",
"count": 1,
"p95_duration_ms": "26.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:42",
"count": 1,
"p95_duration_ms": "43.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:96",
"count": 1,
"p95_duration_ms": "42.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:113",
"count": 1,
"p95_duration_ms": "23.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:90",
"count": 1,
"p95_duration_ms": "8.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:63",
"count": 1,
"p95_duration_ms": "26.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:91",
"count": 1,
"p95_duration_ms": "15.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:106",
"count": 1,
"p95_duration_ms": "45.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:41",
"count": 1,
"p95_duration_ms": "10.0",
"p95_row_count": null
},
{
"location": "app/jobs/import_job.rb:10",
"count": 1,
"p95_duration_ms": "25.0",
"p95_row_count": null
}
],
"n_plus_one": {
"detected": false
},
"index_recommendations": [
"add_index :posts, :published",
"add_index :posts, :user_id",
"add_index :posts, [\"published\", \"posts.title\", \"posts.content\", \"users.name\"], name: 'covering_idx_posts_published'"
],
"issues": [],
"explain_plan": "3 | 0 | 216 | SCAN posts\n7 | 0 | 45 | SEARCH users USING INTEGER PRIMARY KEY (rowid=?)"
}