P95 Query Time
33 ms
Compared to previous 7 days
Query Responses
Click marker to copy SHA
| Time Period ▼ | Executions | Avg Duration | Min Duration | Max Duration |
|---|---|---|---|---|
| Sep 24, 2026 | 3 | 22.33 ms | 3.0 ms | 35.0 ms |
| Sep 23, 2026 | 13 | 25.69 ms | 3.0 ms | 35.0 ms |
| Sep 22, 2026 | 10 | 17.7 ms | 2.0 ms | 35.0 ms |
| Sep 21, 2026 | 12 | 15.17 ms | 1.0 ms | 32.0 ms |
| Sep 20, 2026 | 7 | 22.43 ms | 6.0 ms | 34.0 ms |
| Sep 19, 2026 | 10 | 12.8 ms | 2.0 ms | 20.0 ms |
| Sep 18, 2026 | 13 | 19.46 ms | 5.0 ms | 35.0 ms |
| Sep 17, 2026 | 12 | 16.58 ms | 1.0 ms | 32.0 ms |
| Sep 16, 2026 | 7 | 24.14 ms | 5.0 ms | 45.0 ms |
| Sep 15, 2026 | 16 | 14.0 ms | 2.0 ms | 32.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 | — | 153 |
app/jobs/webhook_delivery_job.rb:57 |
45.0 | — | 1 |
app/mailers/user_mailer.rb:112 |
8.0 | — | 1 |
app/jobs/report_generator_job.rb:83 |
41.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:91 |
4.0 | — | 1 |
app/jobs/analytics_job.rb:11 |
32.0 | — | 1 |
app/jobs/cache_warming_job.rb:85 |
7.0 | — | 1 |
app/jobs/data_export_job.rb:20 |
3.0 | — | 1 |
app/jobs/notification_job.rb:69 |
8.0 | — | 1 |
app/jobs/cache_warming_job.rb:66 |
22.0 | — | 1 |
app/jobs/data_export_job.rb:56 |
2.0 | — | 1 |
app/jobs/import_job.rb:105 |
22.0 | — | 1 |
app/jobs/import_job.rb:106 |
15.0 | — | 1 |
app/jobs/report_generator_job.rb:53 |
31.0 | — | 1 |
app/jobs/cache_warming_job.rb:103 |
4.0 | — | 1 |
app/jobs/cache_warming_job.rb:28 |
49.0 | — | 1 |
app/jobs/cache_warming_job.rb:41 |
2.0 | — | 1 |
app/mailers/user_mailer.rb:19 |
17.0 | — | 1 |
app/jobs/cache_warming_job.rb:55 |
36.0 | — | 1 |
app/jobs/notification_job.rb:66 |
33.0 | — | 1 |
app/jobs/notification_job.rb:30 |
15.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:73 |
47.0 | — | 1 |
app/jobs/cache_warming_job.rb:63 |
43.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:108 |
3.0 | — | 1 |
app/jobs/cache_warming_job.rb:115 |
15.0 | — | 1 |
app/jobs/cache_warming_job.rb:97 |
11.0 | — | 1 |
app/jobs/notification_job.rb:21 |
10.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:76 |
3.0 | — | 1 |
app/jobs/report_generator_job.rb:120 |
13.0 | — | 1 |
app/jobs/data_export_job.rb:106 |
42.0 | — | 1 |
app/jobs/data_export_job.rb:61 |
28.0 | — | 1 |
app/jobs/image_processing_job.rb:56 |
13.0 | — | 1 |
app/jobs/image_processing_job.rb:59 |
37.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:112 |
6.0 | — | 1 |
app/jobs/analytics_job.rb:73 |
30.0 | — | 1 |
Raw Data
{
"query": {
"id": 624,
"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-24 06:02:22 UTC"
},
"performance": {
"total_executions": 187,
"p95_duration_ms": "35.0",
"avg_duration_ms": 18.2781,
"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": 153,
"p95_duration_ms": "34.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:57",
"count": 1,
"p95_duration_ms": "45.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:112",
"count": 1,
"p95_duration_ms": "8.0",
"p95_row_count": null
},
{
"location": "app/jobs/report_generator_job.rb:83",
"count": 1,
"p95_duration_ms": "41.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:91",
"count": 1,
"p95_duration_ms": "4.0",
"p95_row_count": null
},
{
"location": "app/jobs/analytics_job.rb:11",
"count": 1,
"p95_duration_ms": "32.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:85",
"count": 1,
"p95_duration_ms": "7.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:20",
"count": 1,
"p95_duration_ms": "3.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:69",
"count": 1,
"p95_duration_ms": "8.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:66",
"count": 1,
"p95_duration_ms": "22.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:56",
"count": 1,
"p95_duration_ms": "2.0",
"p95_row_count": null
},
{
"location": "app/jobs/import_job.rb:105",
"count": 1,
"p95_duration_ms": "22.0",
"p95_row_count": null
},
{
"location": "app/jobs/import_job.rb:106",
"count": 1,
"p95_duration_ms": "15.0",
"p95_row_count": null
},
{
"location": "app/jobs/report_generator_job.rb:53",
"count": 1,
"p95_duration_ms": "31.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:103",
"count": 1,
"p95_duration_ms": "4.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:28",
"count": 1,
"p95_duration_ms": "49.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:41",
"count": 1,
"p95_duration_ms": "2.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:19",
"count": 1,
"p95_duration_ms": "17.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:55",
"count": 1,
"p95_duration_ms": "36.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:66",
"count": 1,
"p95_duration_ms": "33.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:30",
"count": 1,
"p95_duration_ms": "15.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:73",
"count": 1,
"p95_duration_ms": "47.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:63",
"count": 1,
"p95_duration_ms": "43.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:108",
"count": 1,
"p95_duration_ms": "3.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:115",
"count": 1,
"p95_duration_ms": "15.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:97",
"count": 1,
"p95_duration_ms": "11.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:21",
"count": 1,
"p95_duration_ms": "10.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:76",
"count": 1,
"p95_duration_ms": "3.0",
"p95_row_count": null
},
{
"location": "app/jobs/report_generator_job.rb:120",
"count": 1,
"p95_duration_ms": "13.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:106",
"count": 1,
"p95_duration_ms": "42.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:61",
"count": 1,
"p95_duration_ms": "28.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:56",
"count": 1,
"p95_duration_ms": "13.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:59",
"count": 1,
"p95_duration_ms": "37.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:112",
"count": 1,
"p95_duration_ms": "6.0",
"p95_row_count": null
},
{
"location": "app/jobs/analytics_job.rb:73",
"count": 1,
"p95_duration_ms": "30.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=?)"
}