P95 Query Time
32 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 | 1 | 22.0 ms | 22.0 ms | 22.0 ms |
| Sep 22, 2026 | 12 | 17.83 ms | 6.0 ms | 33.0 ms |
| Sep 21, 2026 | 14 | 13.21 ms | 2.0 ms | 32.0 ms |
| Sep 20, 2026 | 15 | 18.67 ms | 1.0 ms | 34.0 ms |
| Sep 19, 2026 | 7 | 23.14 ms | 6.0 ms | 33.0 ms |
| Sep 18, 2026 | 11 | 15.27 ms | 2.0 ms | 31.0 ms |
| Sep 17, 2026 | 16 | 16.63 ms | 2.0 ms | 34.0 ms |
| Sep 16, 2026 | 14 | 19.29 ms | 4.0 ms | 35.0 ms |
| Sep 15, 2026 | 19 | 17.11 ms | 4.0 ms | 35.0 ms |
| Sep 14, 2026 | 15 | 22.6 ms | 5.0 ms | 47.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 |
33.0 | — | 163 |
app/jobs/notification_job.rb:16 |
9.0 | — | 1 |
app/jobs/import_job.rb:51 |
5.0 | — | 1 |
app/jobs/cache_warming_job.rb:14 |
36.0 | — | 1 |
app/jobs/data_export_job.rb:96 |
27.0 | — | 1 |
app/jobs/cache_warming_job.rb:77 |
8.0 | — | 1 |
app/jobs/data_export_job.rb:75 |
5.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:118 |
39.0 | — | 1 |
app/jobs/cache_warming_job.rb:106 |
47.0 | — | 1 |
app/jobs/image_processing_job.rb:41 |
7.0 | — | 1 |
app/jobs/notification_job.rb:21 |
7.0 | — | 1 |
app/mailers/user_mailer.rb:25 |
36.0 | — | 1 |
app/jobs/data_export_job.rb:100 |
28.0 | — | 1 |
app/jobs/cache_warming_job.rb:55 |
13.0 | — | 1 |
app/jobs/cache_warming_job.rb:111 |
11.0 | — | 1 |
app/jobs/cache_warming_job.rb:76 |
33.0 | — | 1 |
app/jobs/import_job.rb:85 |
18.0 | — | 1 |
app/jobs/cache_warming_job.rb:113 |
8.0 | — | 1 |
app/jobs/notification_job.rb:115 |
9.0 | — | 1 |
app/mailers/user_mailer.rb:102 |
30.0 | — | 1 |
app/jobs/cache_warming_job.rb:54 |
8.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:62 |
21.0 | — | 1 |
app/mailers/user_mailer.rb:71 |
30.0 | — | 1 |
app/jobs/cache_warming_job.rb:90 |
5.0 | — | 1 |
app/jobs/cache_warming_job.rb:99 |
38.0 | — | 1 |
Raw Data
{
"query": {
"id": 95,
"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 07:02:22 UTC"
},
"performance": {
"total_executions": 187,
"p95_duration_ms": "35.0",
"avg_duration_ms": 18.1711,
"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": 163,
"p95_duration_ms": "33.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:16",
"count": 1,
"p95_duration_ms": "9.0",
"p95_row_count": null
},
{
"location": "app/jobs/import_job.rb:51",
"count": 1,
"p95_duration_ms": "5.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:14",
"count": 1,
"p95_duration_ms": "36.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:96",
"count": 1,
"p95_duration_ms": "27.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:77",
"count": 1,
"p95_duration_ms": "8.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:75",
"count": 1,
"p95_duration_ms": "5.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:118",
"count": 1,
"p95_duration_ms": "39.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:106",
"count": 1,
"p95_duration_ms": "47.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:41",
"count": 1,
"p95_duration_ms": "7.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:21",
"count": 1,
"p95_duration_ms": "7.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:25",
"count": 1,
"p95_duration_ms": "36.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:100",
"count": 1,
"p95_duration_ms": "28.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:55",
"count": 1,
"p95_duration_ms": "13.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:111",
"count": 1,
"p95_duration_ms": "11.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:76",
"count": 1,
"p95_duration_ms": "33.0",
"p95_row_count": null
},
{
"location": "app/jobs/import_job.rb:85",
"count": 1,
"p95_duration_ms": "18.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:113",
"count": 1,
"p95_duration_ms": "8.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:115",
"count": 1,
"p95_duration_ms": "9.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:102",
"count": 1,
"p95_duration_ms": "30.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:54",
"count": 1,
"p95_duration_ms": "8.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:62",
"count": 1,
"p95_duration_ms": "21.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:71",
"count": 1,
"p95_duration_ms": "30.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:90",
"count": 1,
"p95_duration_ms": "5.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:99",
"count": 1,
"p95_duration_ms": "38.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=?)"
}