3949 lines
150 KiB
JSON
3949 lines
150 KiB
JSON
{
|
|
"version": "PostgreSQL 17.11 (Debian 17.11-1.pgdg12+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit",
|
|
"rows": 120000,
|
|
"chat_sizes": [
|
|
100000,
|
|
15000,
|
|
5000
|
|
],
|
|
"repeats": 5,
|
|
"plans": [
|
|
{
|
|
"index": "primary_only",
|
|
"query": "keyset",
|
|
"execution_ms": [
|
|
19.717,
|
|
73.474,
|
|
13.974,
|
|
13.225,
|
|
74.636
|
|
],
|
|
"median_ms": 19.717,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6311.85,
|
|
"Total Cost": 6317.68,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 14.917,
|
|
"Actual Total Time": 19.544,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6311.85,
|
|
"Total Cost": 10356.73,
|
|
"Plan Rows": 34668,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 14.915,
|
|
"Actual Total Time": 19.537,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5311.82,
|
|
"Total Cost": 5355.16,
|
|
"Plan Rows": 17334,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 11.424,
|
|
"Actual Total Time": 11.428,
|
|
"Actual Rows": 44,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4736.0,
|
|
"Plan Rows": 17334,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 3.461,
|
|
"Actual Total Time": 9.44,
|
|
"Actual Rows": 10000,
|
|
"Actual Loops": 3,
|
|
"Filter": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Filter": 30000,
|
|
"Shared Hit Blocks": 3861,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.104,
|
|
"Triggers": [],
|
|
"Execution Time": 19.717
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6311.85,
|
|
"Total Cost": 6317.68,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 9.713,
|
|
"Actual Total Time": 73.441,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6311.85,
|
|
"Total Cost": 10356.73,
|
|
"Plan Rows": 34668,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 9.711,
|
|
"Actual Total Time": 73.434,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5311.82,
|
|
"Total Cost": 5355.16,
|
|
"Plan Rows": 17334,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 6.954,
|
|
"Actual Total Time": 6.956,
|
|
"Actual Rows": 40,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4736.0,
|
|
"Plan Rows": 17334,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 3.649,
|
|
"Actual Total Time": 6.153,
|
|
"Actual Rows": 10000,
|
|
"Actual Loops": 3,
|
|
"Filter": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Filter": 30000,
|
|
"Shared Hit Blocks": 3861,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.135,
|
|
"Triggers": [],
|
|
"Execution Time": 73.474
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6311.85,
|
|
"Total Cost": 6317.68,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 11.211,
|
|
"Actual Total Time": 13.897,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6311.85,
|
|
"Total Cost": 10356.73,
|
|
"Plan Rows": 34668,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 11.209,
|
|
"Actual Total Time": 13.892,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5311.82,
|
|
"Total Cost": 5355.16,
|
|
"Plan Rows": 17334,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 7.629,
|
|
"Actual Total Time": 7.632,
|
|
"Actual Rows": 44,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4736.0,
|
|
"Plan Rows": 17334,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 3.991,
|
|
"Actual Total Time": 6.827,
|
|
"Actual Rows": 10000,
|
|
"Actual Loops": 3,
|
|
"Filter": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Filter": 30000,
|
|
"Shared Hit Blocks": 3861,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.414,
|
|
"Triggers": [],
|
|
"Execution Time": 13.974
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6311.85,
|
|
"Total Cost": 6317.68,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 10.389,
|
|
"Actual Total Time": 13.206,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6311.85,
|
|
"Total Cost": 10356.73,
|
|
"Plan Rows": 34668,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 10.388,
|
|
"Actual Total Time": 13.201,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5311.82,
|
|
"Total Cost": 5355.16,
|
|
"Plan Rows": 17334,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 7.704,
|
|
"Actual Total Time": 7.706,
|
|
"Actual Rows": 44,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4736.0,
|
|
"Plan Rows": 17334,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 4.052,
|
|
"Actual Total Time": 6.858,
|
|
"Actual Rows": 10000,
|
|
"Actual Loops": 3,
|
|
"Filter": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Filter": 30000,
|
|
"Shared Hit Blocks": 3861,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.152,
|
|
"Triggers": [],
|
|
"Execution Time": 13.225
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6311.85,
|
|
"Total Cost": 6317.68,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 71.8,
|
|
"Actual Total Time": 74.612,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6311.85,
|
|
"Total Cost": 10356.73,
|
|
"Plan Rows": 34668,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 71.799,
|
|
"Actual Total Time": 74.607,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5311.82,
|
|
"Total Cost": 5355.16,
|
|
"Plan Rows": 17334,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 47.208,
|
|
"Actual Total Time": 47.211,
|
|
"Actual Rows": 44,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 3891,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4736.0,
|
|
"Plan Rows": 17334,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 43.141,
|
|
"Actual Total Time": 46.138,
|
|
"Actual Rows": 10000,
|
|
"Actual Loops": 3,
|
|
"Filter": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Filter": 30000,
|
|
"Shared Hit Blocks": 3861,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.162,
|
|
"Triggers": [],
|
|
"Execution Time": 74.636
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"index": "primary_only",
|
|
"query": "offset",
|
|
"execution_ms": [
|
|
128.966,
|
|
184.693,
|
|
110.659,
|
|
178.235,
|
|
171.559
|
|
],
|
|
"median_ms": 171.559,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 21386.34,
|
|
"Total Cost": 21392.17,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 115.487,
|
|
"Actual Total Time": 124.548,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2595,
|
|
"Temp Written Blocks": 2961,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13219.1,
|
|
"Total Cost": 22912.44,
|
|
"Plan Rows": 83080,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 78.595,
|
|
"Actual Total Time": 121.852,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2595,
|
|
"Temp Written Blocks": 2961,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 12219.08,
|
|
"Total Cost": 12322.93,
|
|
"Plan Rows": 41540,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 57.285,
|
|
"Actual Total Time": 63.136,
|
|
"Actual Rows": 23483,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 10288,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2595,
|
|
"Temp Written Blocks": 2961,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6728,
|
|
"Sort Space Type": "Disk"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6632,
|
|
"Sort Space Type": "Disk"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4486.0,
|
|
"Plan Rows": 41540,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.012,
|
|
"Actual Total Time": 6.455,
|
|
"Actual Rows": 33333,
|
|
"Actual Loops": 3,
|
|
"Filter": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Filter": 6667,
|
|
"Shared Hit Blocks": 3861,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.112,
|
|
"Triggers": [],
|
|
"Execution Time": 128.966
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 21386.34,
|
|
"Total Cost": 21392.17,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 175.321,
|
|
"Actual Total Time": 183.158,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2368,
|
|
"Temp Written Blocks": 2963,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13219.1,
|
|
"Total Cost": 22912.44,
|
|
"Plan Rows": 83080,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 73.494,
|
|
"Actual Total Time": 180.507,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2368,
|
|
"Temp Written Blocks": 2963,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 12219.08,
|
|
"Total Cost": 12322.93,
|
|
"Plan Rows": 41540,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 65.002,
|
|
"Actual Total Time": 70.766,
|
|
"Actual Rows": 23484,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 10024,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2368,
|
|
"Temp Written Blocks": 2963,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6816,
|
|
"Sort Space Type": "Disk"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6816,
|
|
"Sort Space Type": "Disk"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4486.0,
|
|
"Plan Rows": 41540,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.031,
|
|
"Actual Total Time": 18.774,
|
|
"Actual Rows": 33333,
|
|
"Actual Loops": 3,
|
|
"Filter": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Filter": 6667,
|
|
"Shared Hit Blocks": 3861,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.115,
|
|
"Triggers": [],
|
|
"Execution Time": 184.693
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 21386.34,
|
|
"Total Cost": 21392.17,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 103.446,
|
|
"Actual Total Time": 108.434,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2495,
|
|
"Temp Written Blocks": 2963,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13219.1,
|
|
"Total Cost": 22912.44,
|
|
"Plan Rows": 83080,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 65.872,
|
|
"Actual Total Time": 105.917,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2495,
|
|
"Temp Written Blocks": 2963,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 12219.08,
|
|
"Total Cost": 12322.93,
|
|
"Plan Rows": 41540,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 49.533,
|
|
"Actual Total Time": 56.887,
|
|
"Actual Rows": 23467,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 12328,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2495,
|
|
"Temp Written Blocks": 2963,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 4512,
|
|
"Sort Space Type": "Disk"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6816,
|
|
"Sort Space Type": "Disk"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4486.0,
|
|
"Plan Rows": 41540,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.018,
|
|
"Actual Total Time": 6.581,
|
|
"Actual Rows": 33333,
|
|
"Actual Loops": 3,
|
|
"Filter": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Filter": 6667,
|
|
"Shared Hit Blocks": 3861,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.124,
|
|
"Triggers": [],
|
|
"Execution Time": 110.659
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 21386.34,
|
|
"Total Cost": 21392.17,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 168.071,
|
|
"Actual Total Time": 175.13,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2602,
|
|
"Temp Written Blocks": 2962,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13219.1,
|
|
"Total Cost": 22912.44,
|
|
"Plan Rows": 83080,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 68.472,
|
|
"Actual Total Time": 172.41,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2602,
|
|
"Temp Written Blocks": 2962,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 12219.08,
|
|
"Total Cost": 12322.93,
|
|
"Plan Rows": 41540,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 63.676,
|
|
"Actual Total Time": 71.654,
|
|
"Actual Rows": 23499,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 11464,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2602,
|
|
"Temp Written Blocks": 2962,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6816,
|
|
"Sort Space Type": "Disk"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 5368,
|
|
"Sort Space Type": "Disk"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4486.0,
|
|
"Plan Rows": 41540,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.011,
|
|
"Actual Total Time": 34.255,
|
|
"Actual Rows": 33333,
|
|
"Actual Loops": 3,
|
|
"Filter": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Filter": 6667,
|
|
"Shared Hit Blocks": 3861,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.113,
|
|
"Triggers": [],
|
|
"Execution Time": 178.235
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 21386.34,
|
|
"Total Cost": 21392.17,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 111.806,
|
|
"Actual Total Time": 169.057,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2610,
|
|
"Temp Written Blocks": 2963,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13219.1,
|
|
"Total Cost": 22912.44,
|
|
"Plan Rows": 83080,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 72.626,
|
|
"Actual Total Time": 166.507,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2610,
|
|
"Temp Written Blocks": 2963,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 12219.08,
|
|
"Total Cost": 12322.93,
|
|
"Plan Rows": 41540,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 37.29,
|
|
"Actual Total Time": 43.569,
|
|
"Actual Rows": 23489,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 11072,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 3949,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2610,
|
|
"Temp Written Blocks": 2963,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6816,
|
|
"Sort Space Type": "Disk"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 5768,
|
|
"Sort Space Type": "Disk"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4486.0,
|
|
"Plan Rows": 41540,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.011,
|
|
"Actual Total Time": 6.339,
|
|
"Actual Rows": 33333,
|
|
"Actual Loops": 3,
|
|
"Filter": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Filter": 6667,
|
|
"Shared Hit Blocks": 3861,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.324,
|
|
"Triggers": [],
|
|
"Execution Time": 171.559
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"index": "chat_index",
|
|
"query": "keyset",
|
|
"execution_ms": [
|
|
13.441,
|
|
14.577,
|
|
70.087,
|
|
13.662,
|
|
83.644
|
|
],
|
|
"median_ms": 14.577,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6469.44,
|
|
"Total Cost": 6475.28,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 9.635,
|
|
"Actual Total Time": 13.414,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6469.44,
|
|
"Total Cost": 10518.53,
|
|
"Plan Rows": 34704,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 9.633,
|
|
"Actual Total Time": 13.409,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5469.42,
|
|
"Total Cost": 5512.8,
|
|
"Plan Rows": 17352,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 7.106,
|
|
"Actual Total Time": 7.114,
|
|
"Actual Rows": 34,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4893.0,
|
|
"Plan Rows": 17352,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 4.085,
|
|
"Actual Total Time": 6.321,
|
|
"Actual Rows": 10000,
|
|
"Actual Loops": 3,
|
|
"Filter": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Filter": 30000,
|
|
"Shared Hit Blocks": 4018,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.121,
|
|
"Triggers": [],
|
|
"Execution Time": 13.441
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6469.44,
|
|
"Total Cost": 6475.28,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 9.733,
|
|
"Actual Total Time": 14.535,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6469.44,
|
|
"Total Cost": 10518.53,
|
|
"Plan Rows": 34704,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 9.731,
|
|
"Actual Total Time": 14.529,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5469.42,
|
|
"Total Cost": 5512.8,
|
|
"Plan Rows": 17352,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 7.013,
|
|
"Actual Total Time": 7.015,
|
|
"Actual Rows": 40,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4893.0,
|
|
"Plan Rows": 17352,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 4.152,
|
|
"Actual Total Time": 6.279,
|
|
"Actual Rows": 10000,
|
|
"Actual Loops": 3,
|
|
"Filter": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Filter": 30000,
|
|
"Shared Hit Blocks": 4018,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.23,
|
|
"Triggers": [],
|
|
"Execution Time": 14.577
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6469.44,
|
|
"Total Cost": 6475.28,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 66.561,
|
|
"Actual Total Time": 69.897,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6469.44,
|
|
"Total Cost": 10518.53,
|
|
"Plan Rows": 34704,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 66.559,
|
|
"Actual Total Time": 69.891,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5469.42,
|
|
"Total Cost": 5512.8,
|
|
"Plan Rows": 17352,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 63.233,
|
|
"Actual Total Time": 63.236,
|
|
"Actual Rows": 44,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4893.0,
|
|
"Plan Rows": 17352,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 4.659,
|
|
"Actual Total Time": 62.023,
|
|
"Actual Rows": 10000,
|
|
"Actual Loops": 3,
|
|
"Filter": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Filter": 30000,
|
|
"Shared Hit Blocks": 4018,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.323,
|
|
"Triggers": [],
|
|
"Execution Time": 70.087
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6469.44,
|
|
"Total Cost": 6475.28,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 10.64,
|
|
"Actual Total Time": 13.635,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6469.44,
|
|
"Total Cost": 10518.53,
|
|
"Plan Rows": 34704,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 10.639,
|
|
"Actual Total Time": 13.63,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5469.42,
|
|
"Total Cost": 5512.8,
|
|
"Plan Rows": 17352,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 7.67,
|
|
"Actual Total Time": 7.672,
|
|
"Actual Rows": 40,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4893.0,
|
|
"Plan Rows": 17352,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 4.498,
|
|
"Actual Total Time": 6.888,
|
|
"Actual Rows": 10000,
|
|
"Actual Loops": 3,
|
|
"Filter": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Filter": 30000,
|
|
"Shared Hit Blocks": 4018,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.254,
|
|
"Triggers": [],
|
|
"Execution Time": 13.662
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6469.44,
|
|
"Total Cost": 6475.28,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 14.035,
|
|
"Actual Total Time": 83.613,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6469.44,
|
|
"Total Cost": 10518.53,
|
|
"Plan Rows": 34704,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 14.033,
|
|
"Actual Total Time": 83.6,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5469.42,
|
|
"Total Cost": 5512.8,
|
|
"Plan Rows": 17352,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 9.531,
|
|
"Actual Total Time": 9.535,
|
|
"Actual Rows": 40,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 4048,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4893.0,
|
|
"Plan Rows": 17352,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 4.371,
|
|
"Actual Total Time": 8.113,
|
|
"Actual Rows": 10000,
|
|
"Actual Loops": 3,
|
|
"Filter": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Filter": 30000,
|
|
"Shared Hit Blocks": 4018,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.212,
|
|
"Triggers": [],
|
|
"Execution Time": 83.644
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"index": "chat_index",
|
|
"query": "offset",
|
|
"execution_ms": [
|
|
186.094,
|
|
127.692,
|
|
180.612,
|
|
172.957,
|
|
137.825
|
|
],
|
|
"median_ms": 172.957,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 21570.35,
|
|
"Total Cost": 21576.18,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 179.759,
|
|
"Actual Total Time": 184.506,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2472,
|
|
"Temp Written Blocks": 2962,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13403.11,
|
|
"Total Cost": 23132.62,
|
|
"Plan Rows": 83390,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 75.651,
|
|
"Actual Total Time": 181.264,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2472,
|
|
"Temp Written Blocks": 2962,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 12403.09,
|
|
"Total Cost": 12507.33,
|
|
"Plan Rows": 41695,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 67.613,
|
|
"Actual Total Time": 76.427,
|
|
"Actual Rows": 23427,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 13424,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2472,
|
|
"Temp Written Blocks": 2962,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6752,
|
|
"Sort Space Type": "Disk"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 3472,
|
|
"Sort Space Type": "Disk"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4643.0,
|
|
"Plan Rows": 41695,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.011,
|
|
"Actual Total Time": 6.626,
|
|
"Actual Rows": 33333,
|
|
"Actual Loops": 3,
|
|
"Filter": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Filter": 6667,
|
|
"Shared Hit Blocks": 4018,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.599,
|
|
"Triggers": [],
|
|
"Execution Time": 186.094
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 21570.35,
|
|
"Total Cost": 21576.18,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 121.578,
|
|
"Actual Total Time": 125.884,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2429,
|
|
"Temp Written Blocks": 2962,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13403.11,
|
|
"Total Cost": 23132.62,
|
|
"Plan Rows": 83390,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 75.407,
|
|
"Actual Total Time": 123.341,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2429,
|
|
"Temp Written Blocks": 2962,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 12403.09,
|
|
"Total Cost": 12507.33,
|
|
"Plan Rows": 41695,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 38.978,
|
|
"Actual Total Time": 47.258,
|
|
"Actual Rows": 23478,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 10584,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2429,
|
|
"Temp Written Blocks": 2962,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6816,
|
|
"Sort Space Type": "Disk"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6248,
|
|
"Sort Space Type": "Disk"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4643.0,
|
|
"Plan Rows": 41695,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.036,
|
|
"Actual Total Time": 23.273,
|
|
"Actual Rows": 33333,
|
|
"Actual Loops": 3,
|
|
"Filter": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Filter": 6667,
|
|
"Shared Hit Blocks": 4018,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.221,
|
|
"Triggers": [],
|
|
"Execution Time": 127.692
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 21570.35,
|
|
"Total Cost": 21576.18,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 173.229,
|
|
"Actual Total Time": 178.848,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2366,
|
|
"Temp Written Blocks": 2962,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13403.11,
|
|
"Total Cost": 23132.62,
|
|
"Plan Rows": 83390,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 66.691,
|
|
"Actual Total Time": 176.043,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2366,
|
|
"Temp Written Blocks": 2962,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 12403.09,
|
|
"Total Cost": 12507.33,
|
|
"Plan Rows": 41695,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 60.451,
|
|
"Actual Total Time": 69.222,
|
|
"Actual Rows": 23457,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 10080,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2366,
|
|
"Temp Written Blocks": 2962,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6816,
|
|
"Sort Space Type": "Disk"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6752,
|
|
"Sort Space Type": "Disk"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4643.0,
|
|
"Plan Rows": 41695,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.009,
|
|
"Actual Total Time": 8.403,
|
|
"Actual Rows": 33333,
|
|
"Actual Loops": 3,
|
|
"Filter": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Filter": 6667,
|
|
"Shared Hit Blocks": 4018,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.395,
|
|
"Triggers": [],
|
|
"Execution Time": 180.612
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 21570.35,
|
|
"Total Cost": 21576.18,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 166.129,
|
|
"Actual Total Time": 171.345,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2699,
|
|
"Temp Written Blocks": 2960,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13403.11,
|
|
"Total Cost": 23132.62,
|
|
"Plan Rows": 83390,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 73.732,
|
|
"Actual Total Time": 168.696,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2699,
|
|
"Temp Written Blocks": 2960,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 12403.09,
|
|
"Total Cost": 12507.33,
|
|
"Plan Rows": 41695,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 68.905,
|
|
"Actual Total Time": 75.136,
|
|
"Actual Rows": 23506,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 9592,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2699,
|
|
"Temp Written Blocks": 2960,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 8480,
|
|
"Sort Space Type": "Disk"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 5568,
|
|
"Sort Space Type": "Disk"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4643.0,
|
|
"Plan Rows": 41695,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.009,
|
|
"Actual Total Time": 21.533,
|
|
"Actual Rows": 33333,
|
|
"Actual Loops": 3,
|
|
"Filter": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Filter": 6667,
|
|
"Shared Hit Blocks": 4018,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.109,
|
|
"Triggers": [],
|
|
"Execution Time": 172.957
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 21570.35,
|
|
"Total Cost": 21576.18,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 129.959,
|
|
"Actual Total Time": 135.199,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2543,
|
|
"Temp Written Blocks": 2963,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13403.11,
|
|
"Total Cost": 23132.62,
|
|
"Plan Rows": 83390,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 88.783,
|
|
"Actual Total Time": 132.415,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 2,
|
|
"Workers Launched": 2,
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2543,
|
|
"Temp Written Blocks": 2963,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 12403.09,
|
|
"Total Cost": 12507.33,
|
|
"Plan Rows": 41695,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 63.737,
|
|
"Actual Total Time": 71.064,
|
|
"Actual Rows": 23478,
|
|
"Actual Loops": 3,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 10512,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 4106,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 2543,
|
|
"Temp Written Blocks": 2963,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6328,
|
|
"Sort Space Type": "Disk"
|
|
},
|
|
{
|
|
"Worker Number": 1,
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 6816,
|
|
"Sort Space Type": "Disk"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4643.0,
|
|
"Plan Rows": 41695,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.015,
|
|
"Actual Total Time": 26.824,
|
|
"Actual Rows": 33333,
|
|
"Actual Loops": 3,
|
|
"Filter": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Filter": 6667,
|
|
"Shared Hit Blocks": 4018,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.472,
|
|
"Triggers": [],
|
|
"Execution Time": 137.825
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"index": "compound",
|
|
"query": "keyset",
|
|
"execution_ms": [
|
|
0.049,
|
|
0.196,
|
|
0.029,
|
|
0.094,
|
|
0.029
|
|
],
|
|
"median_ms": 0.049,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 16.52,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.012,
|
|
"Actual Total Time": 0.035,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 6,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 13376.95,
|
|
"Plan Rows": 41523,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.011,
|
|
"Actual Total Time": 0.031,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 6,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.111,
|
|
"Triggers": [],
|
|
"Execution Time": 0.049
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 16.52,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.01,
|
|
"Actual Total Time": 0.112,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 6,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 13376.95,
|
|
"Plan Rows": 41523,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.01,
|
|
"Actual Total Time": 0.102,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 6,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.083,
|
|
"Triggers": [],
|
|
"Execution Time": 0.196
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 16.52,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.008,
|
|
"Actual Total Time": 0.02,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 6,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 13376.95,
|
|
"Plan Rows": 41523,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.007,
|
|
"Actual Total Time": 0.017,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 6,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.063,
|
|
"Triggers": [],
|
|
"Execution Time": 0.029
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 16.52,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.024,
|
|
"Actual Total Time": 0.064,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 6,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 13376.95,
|
|
"Plan Rows": 41523,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.023,
|
|
"Actual Total Time": 0.053,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 6,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.216,
|
|
"Triggers": [],
|
|
"Execution Time": 0.094
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 16.52,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.008,
|
|
"Actual Total Time": 0.02,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 6,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 13376.95,
|
|
"Plan Rows": 41523,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.007,
|
|
"Actual Total Time": 0.016,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:01:10+00'::timestamp with time zone, '696c0138-3d4f-bd16-e6b0-c1b6fff540ec'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 6,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.052,
|
|
"Triggers": [],
|
|
"Execution Time": 0.029
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"index": "compound",
|
|
"query": "offset",
|
|
"execution_ms": [
|
|
19.838,
|
|
19.25,
|
|
13.916,
|
|
14.827,
|
|
14.409
|
|
],
|
|
"median_ms": 14.827,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 11647.76,
|
|
"Total Cost": 11656.08,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 19.809,
|
|
"Actual Total Time": 19.82,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2754,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 16600.21,
|
|
"Plan Rows": 99764,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.011,
|
|
"Actual Total Time": 17.815,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 2754,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.1,
|
|
"Triggers": [],
|
|
"Execution Time": 19.838
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 11647.76,
|
|
"Total Cost": 11656.08,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 19.195,
|
|
"Actual Total Time": 19.208,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2754,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 16600.21,
|
|
"Plan Rows": 99764,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.069,
|
|
"Actual Total Time": 17.045,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 2754,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.44,
|
|
"Triggers": [],
|
|
"Execution Time": 19.25
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 11647.76,
|
|
"Total Cost": 11656.08,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 13.85,
|
|
"Actual Total Time": 13.892,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2754,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 16600.21,
|
|
"Plan Rows": 99764,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.032,
|
|
"Actual Total Time": 11.926,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 2754,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.218,
|
|
"Triggers": [],
|
|
"Execution Time": 13.916
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 11647.76,
|
|
"Total Cost": 11656.08,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 14.803,
|
|
"Actual Total Time": 14.812,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2754,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 16600.21,
|
|
"Plan Rows": 99764,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.018,
|
|
"Actual Total Time": 12.965,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 2754,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.234,
|
|
"Triggers": [],
|
|
"Execution Time": 14.827
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 11647.76,
|
|
"Total Cost": 11656.08,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 14.375,
|
|
"Actual Total Time": 14.385,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2754,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 16600.21,
|
|
"Plan Rows": 99764,
|
|
"Plan Width": 225,
|
|
"Actual Startup Time": 0.028,
|
|
"Actual Total Time": 12.328,
|
|
"Actual Rows": 70050,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 2754,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.187,
|
|
"Triggers": [],
|
|
"Execution Time": 14.409
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"writes": [
|
|
{
|
|
"index": "primary_only",
|
|
"batch_rows": 5000,
|
|
"committed_ms": [
|
|
194.955,
|
|
130.708,
|
|
105.758,
|
|
112.982,
|
|
107.794
|
|
],
|
|
"median_ms": 112.982
|
|
},
|
|
{
|
|
"index": "chat_index",
|
|
"batch_rows": 5000,
|
|
"committed_ms": [
|
|
134.971,
|
|
163.012,
|
|
176.464,
|
|
132.247,
|
|
119.119
|
|
],
|
|
"median_ms": 134.971
|
|
},
|
|
{
|
|
"index": "compound",
|
|
"batch_rows": 5000,
|
|
"committed_ms": [
|
|
165.151,
|
|
123.352,
|
|
125.609,
|
|
140.445,
|
|
145.072
|
|
],
|
|
"median_ms": 140.445
|
|
}
|
|
],
|
|
"snapshot": {
|
|
"counts": {
|
|
"users": 1,
|
|
"chats": 3,
|
|
"members": 3,
|
|
"messages": 120000,
|
|
"sessions": 0
|
|
},
|
|
"selected": [
|
|
[
|
|
"00007f59-a9d2-3b84-3ef6-091415782365",
|
|
"88255127-540c-95c6-cac6-18d9e4630a5b",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-109350",
|
|
"2026-01-01T00:01:49.350000+00:00"
|
|
],
|
|
[
|
|
"0001e8fa-aaff-dcf0-e91a-76b3ce513a5a",
|
|
"88255127-540c-95c6-cac6-18d9e4630a5b",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-101333",
|
|
"2026-01-01T00:01:41.333000+00:00"
|
|
],
|
|
[
|
|
"0001fe5c-dac5-95be-e3c2-98a08c99a1c5",
|
|
"88255127-540c-95c6-cac6-18d9e4630a5b",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-104987",
|
|
"2026-01-01T00:01:44.987000+00:00"
|
|
],
|
|
[
|
|
"000209d4-d5f3-45da-b78b-66295ca75999",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-79772",
|
|
"2026-01-01T00:01:19.772000+00:00"
|
|
],
|
|
[
|
|
"000251f9-16b9-e4e3-a885-72d4a8047563",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-16308",
|
|
"2026-01-01T00:00:16.308000+00:00"
|
|
],
|
|
[
|
|
"0002b449-3bc2-28d4-c8a5-949664801557",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-29651",
|
|
"2026-01-01T00:00:29.651000+00:00"
|
|
],
|
|
[
|
|
"000313b0-ff0e-d495-0396-6e648ab33022",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-76332",
|
|
"2026-01-01T00:01:16.332000+00:00"
|
|
],
|
|
[
|
|
"000341d0-5544-f48f-fa05-f45f76dbc946",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-83651",
|
|
"2026-01-01T00:01:23.651000+00:00"
|
|
],
|
|
[
|
|
"0003c8a7-b0d7-99c1-dabf-45599abb2dcf",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-3460",
|
|
"2026-01-01T00:00:03.460000+00:00"
|
|
],
|
|
[
|
|
"00048192-4d3d-3489-843c-cdfe54d65984",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-53856",
|
|
"2026-01-01T00:00:53.856000+00:00"
|
|
],
|
|
[
|
|
"0004b478-630d-6fc0-e9f7-10f8ef2f0ffb",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-15792",
|
|
"2026-01-01T00:00:15.792000+00:00"
|
|
],
|
|
[
|
|
"0004e22f-10fc-ee50-40c6-a8fffc910cfc",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-60822",
|
|
"2026-01-01T00:01:00.822000+00:00"
|
|
],
|
|
[
|
|
"00052d15-f4e7-d68b-269e-eeb7f90ab192",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-90960",
|
|
"2026-01-01T00:01:30.960000+00:00"
|
|
],
|
|
[
|
|
"00061b8b-7e6c-7660-1881-a72e5c006355",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-53908",
|
|
"2026-01-01T00:00:53.908000+00:00"
|
|
],
|
|
[
|
|
"00061f5e-d8e9-2727-ce0b-66d5c1f929c4",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-9014",
|
|
"2026-01-01T00:00:09.014000+00:00"
|
|
],
|
|
[
|
|
"0007f005-203e-29ee-e42e-4f7bd8c8ce55",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-39009",
|
|
"2026-01-01T00:00:39.009000+00:00"
|
|
],
|
|
[
|
|
"000894ce-771d-b0c5-4257-c0f11ba3738b",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-50802",
|
|
"2026-01-01T00:00:50.802000+00:00"
|
|
],
|
|
[
|
|
"0009890d-722b-c19a-423a-4256dcd2f4d8",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-90624",
|
|
"2026-01-01T00:01:30.624000+00:00"
|
|
],
|
|
[
|
|
"000a09f8-b6a1-5757-366d-e31e47f20ceb",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-32627",
|
|
"2026-01-01T00:00:32.627000+00:00"
|
|
],
|
|
[
|
|
"000af189-7b90-0d83-02d6-a2a1b6f7cb7d",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"00000000-0000-0000-0000-000000000001",
|
|
"payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-payload-17917",
|
|
"2026-01-01T00:00:17.917000+00:00"
|
|
]
|
|
],
|
|
"all_messages_digest": "897c5828c0607c030860f5537915650a"
|
|
},
|
|
"backup": {
|
|
"seconds": 1.247,
|
|
"bytes": 3592366,
|
|
"sha256": "bb3aa237912e8427554885f7c3b183224b405a03a97a5a3f44acbc9d08fcd9a5"
|
|
},
|
|
"restore": {
|
|
"seconds_including_startup": 4.026,
|
|
"fresh_volume": "lab2-restore-2d6df06983",
|
|
"published_ports": false,
|
|
"counts": {
|
|
"users": 1,
|
|
"chats": 3,
|
|
"members": 3,
|
|
"messages": 120000,
|
|
"sessions": 0
|
|
},
|
|
"all_messages_digest": "897c5828c0607c030860f5537915650a",
|
|
"selected_20_match": true,
|
|
"verified": true
|
|
},
|
|
"limitations": "Warm-cache serial variants on one local host; logical backup snapshot, no WAL/PITR; synthetic DB retained for inspection.",
|
|
"database": "experiment_2d6df06983"
|
|
}
|