P95 Query Time
36 ms
Compared to previous 7 days
Query Responses
Click marker to copy SHA
| Time Period ▼ | Executions | Avg Duration | Min Duration | Max Duration |
|---|---|---|---|---|
| Nov 12, 2026 | 20 | 23.9 ms | 3.0 ms | 50.0 ms |
| Nov 11, 2026 | 14 | 19.07 ms | 5.0 ms | 35.0 ms |
| Nov 10, 2026 | 13 | 21.46 ms | 9.0 ms | 33.0 ms |
| Nov 9, 2026 | 18 | 18.61 ms | 2.0 ms | 32.0 ms |
| Nov 8, 2026 | 7 | 22.29 ms | 8.0 ms | 48.0 ms |
Total of 15 record(s).
Page 2 of 2
Normalized Query
SELECT id, name, email FROM users WHERE id = ?
Diagnostics
Query Characteristics
- Query Type
- SELECT
- Tables
- 1
- Joins
- 0
- Complexity Score
- 3
- Has LIMIT
- No
- Has ORDER BY
- No
- Has GROUP BY
- No
- Has Subqueries
- No
Optimization Suggestions
-
Add single_column index: add_index :users, :id
— Fast lookups for id = value queries
add_index :users, :id
Execution Plan
2 | 0 | 33 | SEARCH users USING INTEGER PRIMARY KEY (rowid=?)
Query Locations
| Location | P95 Duration (ms) | P95 Row Count | Count |
|---|---|---|---|
app/models/user.rb:15 |
33.0 | — | 173 |
app/mailers/user_mailer.rb:53 |
40.0 | — | 1 |
app/jobs/notification_job.rb:76 |
43.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:79 |
46.0 | — | 1 |
app/jobs/notification_job.rb:43 |
47.0 | — | 1 |
app/jobs/notification_job.rb:100 |
4.0 | — | 1 |
app/jobs/data_export_job.rb:72 |
47.0 | — | 1 |
app/jobs/cache_warming_job.rb:25 |
8.0 | — | 1 |
app/jobs/cache_warming_job.rb:89 |
42.0 | — | 1 |
app/jobs/cache_warming_job.rb:116 |
37.0 | — | 1 |
app/jobs/cache_warming_job.rb:50 |
20.0 | — | 1 |
app/jobs/cache_warming_job.rb:107 |
21.0 | — | 1 |
app/jobs/image_processing_job.rb:27 |
3.0 | — | 1 |
app/jobs/notification_job.rb:52 |
9.0 | — | 1 |
app/jobs/notification_job.rb:110 |
44.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:48 |
30.0 | — | 1 |
app/jobs/notification_job.rb:78 |
25.0 | — | 1 |
app/jobs/report_generator_job.rb:38 |
50.0 | — | 1 |
app/jobs/cache_warming_job.rb:21 |
13.0 | — | 2 |
app/mailers/user_mailer.rb:31 |
49.0 | — | 1 |
app/jobs/image_processing_job.rb:25 |
44.0 | — | 1 |
app/jobs/image_processing_job.rb:40 |
50.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:92 |
8.0 | — | 1 |
app/jobs/data_export_job.rb:81 |
25.0 | — | 1 |
app/jobs/cache_warming_job.rb:27 |
25.0 | — | 1 |
app/jobs/cache_warming_job.rb:14 |
15.0 | — | 1 |
app/jobs/image_processing_job.rb:21 |
20.0 | — | 1 |
app/jobs/data_export_job.rb:40 |
21.0 | — | 1 |
app/jobs/cache_warming_job.rb:31 |
32.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:64 |
8.0 | — | 1 |
app/jobs/cache_warming_job.rb:38 |
48.0 | — | 2 |
app/mailers/user_mailer.rb:15 |
19.0 | — | 1 |
app/jobs/cache_warming_job.rb:112 |
24.0 | — | 1 |
Raw Data
{
"query": {
"id": 7222,
"normalized_sql": "SELECT id, name, email FROM users WHERE id = ?",
"analyzed_at": "2026-11-22 14:02:27 UTC"
},
"performance": {
"total_executions": 207,
"p95_duration_ms": "42.0",
"avg_duration_ms": 19.5749,
"p95_row_count": null,
"avg_row_count": null
},
"characteristics": {
"query_type": "SELECT",
"table_count": 1,
"join_count": 0,
"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": 3
},
"call_locations": [
{
"location": "app/models/user.rb:15",
"count": 173,
"p95_duration_ms": "33.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:21",
"count": 2,
"p95_duration_ms": "13.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:38",
"count": 2,
"p95_duration_ms": "48.0",
"p95_row_count": null
},
{
"location": "app/jobs/report_generator_job.rb:38",
"count": 1,
"p95_duration_ms": "50.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:31",
"count": 1,
"p95_duration_ms": "49.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:25",
"count": 1,
"p95_duration_ms": "44.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:40",
"count": 1,
"p95_duration_ms": "50.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:92",
"count": 1,
"p95_duration_ms": "8.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:81",
"count": 1,
"p95_duration_ms": "25.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:27",
"count": 1,
"p95_duration_ms": "25.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:14",
"count": 1,
"p95_duration_ms": "15.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:21",
"count": 1,
"p95_duration_ms": "20.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:40",
"count": 1,
"p95_duration_ms": "21.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:31",
"count": 1,
"p95_duration_ms": "32.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:64",
"count": 1,
"p95_duration_ms": "8.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:15",
"count": 1,
"p95_duration_ms": "19.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:112",
"count": 1,
"p95_duration_ms": "24.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:78",
"count": 1,
"p95_duration_ms": "25.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:48",
"count": 1,
"p95_duration_ms": "30.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:110",
"count": 1,
"p95_duration_ms": "44.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:52",
"count": 1,
"p95_duration_ms": "9.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:27",
"count": 1,
"p95_duration_ms": "3.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:107",
"count": 1,
"p95_duration_ms": "21.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:50",
"count": 1,
"p95_duration_ms": "20.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:116",
"count": 1,
"p95_duration_ms": "37.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:89",
"count": 1,
"p95_duration_ms": "42.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:25",
"count": 1,
"p95_duration_ms": "8.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:72",
"count": 1,
"p95_duration_ms": "47.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:100",
"count": 1,
"p95_duration_ms": "4.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:43",
"count": 1,
"p95_duration_ms": "47.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:79",
"count": 1,
"p95_duration_ms": "46.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:76",
"count": 1,
"p95_duration_ms": "43.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:53",
"count": 1,
"p95_duration_ms": "40.0",
"p95_row_count": null
}
],
"n_plus_one": {
"detected": false
},
"index_recommendations": [
"add_index :users, :id",
"add_index :users, [\"id\", \"name\", \"email\"], name: 'covering_idx_users_id'"
],
"issues": [],
"explain_plan": "2 | 0 | 33 | SEARCH users USING INTEGER PRIMARY KEY (rowid=?)"
}