1538 lines
56 KiB
JSON
1538 lines
56 KiB
JSON
{
|
|
"dataset": {
|
|
"messages": 120000,
|
|
"chat_sizes": [
|
|
100000,
|
|
15000,
|
|
5000
|
|
]
|
|
},
|
|
"plans": {
|
|
"chat_only": {
|
|
"1_keyset": {
|
|
"execution_ms": [
|
|
4.214,
|
|
4.13,
|
|
4.14,
|
|
4.122,
|
|
4.124
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5690.04,
|
|
"Total Cost": 5695.79,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 3.361,
|
|
"Actual Total Time": 4.114,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2806,
|
|
"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": 5690.04,
|
|
"Total Cost": 7376.86,
|
|
"Plan Rows": 14668,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 3.361,
|
|
"Actual Total Time": 4.112,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 1,
|
|
"Workers Launched": 1,
|
|
"Shared Hit Blocks": 2806,
|
|
"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": 4690.03,
|
|
"Total Cost": 4726.7,
|
|
"Plan Rows": 14668,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 2.673,
|
|
"Actual Total Time": 2.674,
|
|
"Actual Rows": 46,
|
|
"Actual Loops": 2,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 2806,
|
|
"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"
|
|
}
|
|
],
|
|
"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": 4202.76,
|
|
"Plan Rows": 14668,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 1.794,
|
|
"Actual Total Time": 2.444,
|
|
"Actual Rows": 5000,
|
|
"Actual Loops": 2,
|
|
"Filter": "((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:01:30'::interval), 'e98ff526-ad76-393f-7dfb-9717aa548154'::uuid)))",
|
|
"Rows Removed by Filter": 55000,
|
|
"Shared Hit Blocks": 2791,
|
|
"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.024,
|
|
"Triggers": [],
|
|
"Execution Time": 4.124
|
|
}
|
|
},
|
|
"1_offset": {
|
|
"execution_ms": [
|
|
27.208,
|
|
27.171,
|
|
27.137,
|
|
27.233,
|
|
27.65
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 20717.37,
|
|
"Total Cost": 20717.5,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 26.575,
|
|
"Actual Total Time": 26.579,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2791,
|
|
"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": 1913,
|
|
"Temp Written Blocks": 2092,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 20492.37,
|
|
"Total Cost": 20742.87,
|
|
"Plan Rows": 100200,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 19.711,
|
|
"Actual Total Time": 24.953,
|
|
"Actual Rows": 90050,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 16680,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 2791,
|
|
"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": 1913,
|
|
"Temp Written Blocks": 2092,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Seq Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 4291.0,
|
|
"Plan Rows": 100200,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.002,
|
|
"Actual Total Time": 5.484,
|
|
"Actual Rows": 100000,
|
|
"Actual Loops": 1,
|
|
"Filter": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Filter": 20000,
|
|
"Shared Hit Blocks": 2791,
|
|
"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.032,
|
|
"Triggers": [],
|
|
"Execution Time": 27.65
|
|
}
|
|
},
|
|
"2_keyset": {
|
|
"execution_ms": [
|
|
0.93,
|
|
0.923,
|
|
0.932,
|
|
0.937,
|
|
0.909
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3287.69,
|
|
"Total Cost": 3287.82,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.882,
|
|
"Actual Total Time": 0.886,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 365,
|
|
"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": 3287.69,
|
|
"Total Cost": 3290.73,
|
|
"Plan Rows": 1216,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.882,
|
|
"Actual Total Time": 0.883,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 365,
|
|
"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": "Bitmap Heap Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 162.7,
|
|
"Total Cost": 3247.3,
|
|
"Plan Rows": 1216,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.462,
|
|
"Actual Total Time": 0.695,
|
|
"Actual Rows": 5000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '88255127-540c-95c6-cac6-18d9e4630a5b'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:01:50'::interval), '2e07b8c9-c228-97db-d06c-b0888eb7e540'::uuid))",
|
|
"Rows Removed by Filter": 10000,
|
|
"Exact Heap Blocks": 350,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 365,
|
|
"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": "Bitmap Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "candidate",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 162.39,
|
|
"Plan Rows": 14680,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.117,
|
|
"Actual Total Time": 0.117,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '88255127-540c-95c6-cac6-18d9e4630a5b'::uuid)",
|
|
"Shared Hit Blocks": 15,
|
|
"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.032,
|
|
"Triggers": [],
|
|
"Execution Time": 0.909
|
|
}
|
|
},
|
|
"2_offset": {
|
|
"execution_ms": [
|
|
3.878,
|
|
3.869,
|
|
3.868,
|
|
3.938,
|
|
3.911
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 4181.53,
|
|
"Total Cost": 4181.66,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 3.648,
|
|
"Actual Total Time": 3.653,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 365,
|
|
"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": 257,
|
|
"Temp Written Blocks": 314,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 4156.53,
|
|
"Total Cost": 4193.23,
|
|
"Plan Rows": 14680,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 3.074,
|
|
"Actual Total Time": 3.478,
|
|
"Actual Rows": 10050,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 2504,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 365,
|
|
"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": 257,
|
|
"Temp Written Blocks": 314,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Bitmap Heap Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 166.06,
|
|
"Total Cost": 3140.56,
|
|
"Plan Rows": 14680,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.103,
|
|
"Actual Total Time": 0.66,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '88255127-540c-95c6-cac6-18d9e4630a5b'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Exact Heap Blocks": 350,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 365,
|
|
"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": "Bitmap Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "candidate",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 162.39,
|
|
"Plan Rows": 14680,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.094,
|
|
"Actual Total Time": 0.094,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '88255127-540c-95c6-cac6-18d9e4630a5b'::uuid)",
|
|
"Shared Hit Blocks": 15,
|
|
"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.011,
|
|
"Triggers": [],
|
|
"Execution Time": 3.911
|
|
}
|
|
},
|
|
"3_keyset": {
|
|
"execution_ms": [
|
|
0.299,
|
|
0.261,
|
|
0.259,
|
|
0.265,
|
|
0.27
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3007.35,
|
|
"Total Cost": 3007.46,
|
|
"Plan Rows": 41,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.255,
|
|
"Actual Total Time": 0.258,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 123,
|
|
"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": 3007.35,
|
|
"Total Cost": 3007.46,
|
|
"Plan Rows": 41,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.255,
|
|
"Actual Total Time": 0.256,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 37,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 123,
|
|
"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": "Bitmap Heap Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 58.7,
|
|
"Total Cost": 3006.26,
|
|
"Plan Rows": 41,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.156,
|
|
"Actual Total Time": 0.207,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '4b1f4c22-a3ac-7b71-5a63-76fc23f4b574'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:01:59'::interval), 'eb87440f-7144-c629-715c-4a41d200bf84'::uuid))",
|
|
"Rows Removed by Filter": 4000,
|
|
"Exact Heap Blocks": 117,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 123,
|
|
"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": "Bitmap Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "candidate",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 58.69,
|
|
"Plan Rows": 5120,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.029,
|
|
"Actual Total Time": 0.029,
|
|
"Actual Rows": 5000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '4b1f4c22-a3ac-7b71-5a63-76fc23f4b574'::uuid)",
|
|
"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.017,
|
|
"Triggers": [],
|
|
"Execution Time": 0.27
|
|
}
|
|
},
|
|
"3_offset": {
|
|
"execution_ms": [
|
|
0.849,
|
|
0.833,
|
|
0.827,
|
|
0.842,
|
|
0.861
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3294.57,
|
|
"Total Cost": 3294.69,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.789,
|
|
"Actual Total Time": 0.792,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 123,
|
|
"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": 3284.57,
|
|
"Total Cost": 3297.37,
|
|
"Plan Rows": 5120,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.642,
|
|
"Actual Total Time": 0.724,
|
|
"Actual Rows": 4050,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 1482,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 123,
|
|
"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": "Bitmap Heap Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 59.97,
|
|
"Total Cost": 2969.13,
|
|
"Plan Rows": 5120,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.034,
|
|
"Actual Total Time": 0.221,
|
|
"Actual Rows": 5000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '4b1f4c22-a3ac-7b71-5a63-76fc23f4b574'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Exact Heap Blocks": 117,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 123,
|
|
"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": "Bitmap Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "candidate",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 58.69,
|
|
"Plan Rows": 5120,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.03,
|
|
"Actual Total Time": 0.03,
|
|
"Actual Rows": 5000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '4b1f4c22-a3ac-7b71-5a63-76fc23f4b574'::uuid)",
|
|
"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.011,
|
|
"Triggers": [],
|
|
"Execution Time": 0.861
|
|
}
|
|
}
|
|
},
|
|
"composite": {
|
|
"1_keyset": {
|
|
"execution_ms": [
|
|
0.016,
|
|
0.02,
|
|
0.015,
|
|
0.016,
|
|
0.02
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 21.53,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.008,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 5,
|
|
"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": "candidate",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 10643.64,
|
|
"Plan Rows": 25214,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.004,
|
|
"Actual Total Time": 0.006,
|
|
"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:00:00+00'::timestamp with time zone + '00:01:30'::interval), 'e98ff526-ad76-393f-7dfb-9717aa548154'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 5,
|
|
"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.015,
|
|
"Triggers": [],
|
|
"Execution Time": 0.02
|
|
}
|
|
},
|
|
"1_offset": {
|
|
"execution_ms": [
|
|
6.416,
|
|
6.822,
|
|
7.246,
|
|
7.195,
|
|
7.1
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 13270.24,
|
|
"Total Cost": 13277.61,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 7.081,
|
|
"Actual Total Time": 7.086,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2741,
|
|
"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": "candidate",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 14705.73,
|
|
"Plan Rows": 99736,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.009,
|
|
"Actual Total Time": 5.419,
|
|
"Actual Rows": 90050,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 2741,
|
|
"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.041,
|
|
"Triggers": [],
|
|
"Execution Time": 7.1
|
|
}
|
|
},
|
|
"2_keyset": {
|
|
"execution_ms": [
|
|
0.026,
|
|
0.02,
|
|
0.019,
|
|
0.023,
|
|
0.016
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 118.01,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.009,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 5,
|
|
"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": "candidate",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 2994.32,
|
|
"Plan Rows": 1273,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.007,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '88255127-540c-95c6-cac6-18d9e4630a5b'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:01:50'::interval), '2e07b8c9-c228-97db-d06c-b0888eb7e540'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 5,
|
|
"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.018,
|
|
"Triggers": [],
|
|
"Execution Time": 0.016
|
|
}
|
|
},
|
|
"2_offset": {
|
|
"execution_ms": [
|
|
4.411,
|
|
4.009,
|
|
4.139,
|
|
4.236,
|
|
4.167
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5193.47,
|
|
"Total Cost": 5193.59,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 3.898,
|
|
"Actual Total Time": 3.902,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 460,
|
|
"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": 257,
|
|
"Temp Written Blocks": 314,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5168.47,
|
|
"Total Cost": 5206.25,
|
|
"Plan Rows": 15112,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 3.302,
|
|
"Actual Total Time": 3.723,
|
|
"Actual Rows": 10050,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "external merge",
|
|
"Sort Space Used": 2504,
|
|
"Sort Space Type": "Disk",
|
|
"Shared Hit Blocks": 460,
|
|
"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": 257,
|
|
"Temp Written Blocks": 314,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Bitmap Heap Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 557.54,
|
|
"Total Cost": 4119.44,
|
|
"Plan Rows": 15112,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.206,
|
|
"Actual Total Time": 0.797,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '88255127-540c-95c6-cac6-18d9e4630a5b'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Exact Heap Blocks": 350,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 460,
|
|
"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": "Bitmap Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "candidate",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 553.76,
|
|
"Plan Rows": 15112,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.196,
|
|
"Actual Total Time": 0.196,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '88255127-540c-95c6-cac6-18d9e4630a5b'::uuid)",
|
|
"Shared Hit Blocks": 110,
|
|
"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.015,
|
|
"Triggers": [],
|
|
"Execution Time": 4.167
|
|
}
|
|
},
|
|
"3_keyset": {
|
|
"execution_ms": [
|
|
0.016,
|
|
0.018,
|
|
0.015,
|
|
0.019,
|
|
0.015
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 132.18,
|
|
"Plan Rows": 46,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.008,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 5,
|
|
"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": "candidate",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 132.18,
|
|
"Plan Rows": 46,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.007,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '4b1f4c22-a3ac-7b71-5a63-76fc23f4b574'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:01:59'::interval), 'eb87440f-7144-c629-715c-4a41d200bf84'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 5,
|
|
"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.016,
|
|
"Triggers": [],
|
|
"Execution Time": 0.015
|
|
}
|
|
},
|
|
"3_offset": {
|
|
"execution_ms": [
|
|
0.955,
|
|
0.939,
|
|
0.968,
|
|
0.952,
|
|
0.964
|
|
],
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 4113.46,
|
|
"Total Cost": 4113.58,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.891,
|
|
"Actual Total Time": 0.894,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 155,
|
|
"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": 4103.46,
|
|
"Total Cost": 4116.34,
|
|
"Plan Rows": 5152,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.716,
|
|
"Actual Total Time": 0.809,
|
|
"Actual Rows": 4050,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 1482,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 155,
|
|
"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": "Bitmap Heap Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 192.35,
|
|
"Total Cost": 3785.81,
|
|
"Plan Rows": 5152,
|
|
"Plan Width": 157,
|
|
"Actual Startup Time": 0.062,
|
|
"Actual Total Time": 0.261,
|
|
"Actual Rows": 5000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '4b1f4c22-a3ac-7b71-5a63-76fc23f4b574'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Exact Heap Blocks": 117,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 155,
|
|
"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": "Bitmap Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Index Name": "candidate",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 191.06,
|
|
"Plan Rows": 5152,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.058,
|
|
"Actual Total Time": 0.058,
|
|
"Actual Rows": 5000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '4b1f4c22-a3ac-7b71-5a63-76fc23f4b574'::uuid)",
|
|
"Shared Hit Blocks": 38,
|
|
"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.012,
|
|
"Triggers": [],
|
|
"Execution Time": 0.964
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"write": {
|
|
"chat_only": {
|
|
"index_bytes": 860160,
|
|
"runs": [
|
|
{
|
|
"insert_5000_ms": 70.39191700005176
|
|
},
|
|
{
|
|
"insert_5000_ms": 72.31700000011188
|
|
},
|
|
{
|
|
"insert_5000_ms": 70.44754199978343
|
|
},
|
|
{
|
|
"insert_5000_ms": 67.24729200004731
|
|
},
|
|
{
|
|
"insert_5000_ms": 71.58987499997238
|
|
}
|
|
]
|
|
},
|
|
"composite": {
|
|
"index_bytes": 7094272,
|
|
"runs": [
|
|
{
|
|
"insert_5000_ms": 74.53383299980487
|
|
},
|
|
{
|
|
"insert_5000_ms": 71.4828749996741
|
|
},
|
|
{
|
|
"insert_5000_ms": 72.96954200000982
|
|
},
|
|
{
|
|
"insert_5000_ms": 74.03824999983044
|
|
},
|
|
{
|
|
"insert_5000_ms": 73.96383400009654
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"count": 120000,
|
|
"samples": [
|
|
[
|
|
"1017bfd4-6739-55ff-ee46-41ad3d481b1c",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"ee11cbb1-9052-e40b-07aa-c0ca060c23ee",
|
|
"2026-01-01 00:00:50+00",
|
|
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
],
|
|
[
|
|
"14ee22ea-ba29-7944-c96a-fdbe5b16c65b",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"ee11cbb1-9052-e40b-07aa-c0ca060c23ee",
|
|
"2026-01-01 00:01:40+00",
|
|
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
],
|
|
[
|
|
"2e07b8c9-c228-97db-d06c-b0888eb7e540",
|
|
"88255127-540c-95c6-cac6-18d9e4630a5b",
|
|
"ee11cbb1-9052-e40b-07aa-c0ca060c23ee",
|
|
"2026-01-01 00:01:50+00",
|
|
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
],
|
|
[
|
|
"5344237a-d062-53d4-7cee-9a4c091aa663",
|
|
"4b1f4c22-a3ac-7b71-5a63-76fc23f4b574",
|
|
"ee11cbb1-9052-e40b-07aa-c0ca060c23ee",
|
|
"2026-01-01 00:02:00+00",
|
|
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
],
|
|
[
|
|
"c4ca4238-a0b9-2382-0dcc-509a6f75849b",
|
|
"64fbbeee-3c1b-b5be-9d4f-5bd05fe83171",
|
|
"ee11cbb1-9052-e40b-07aa-c0ca060c23ee",
|
|
"2026-01-01 00:00:00.001+00",
|
|
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
]
|
|
],
|
|
"postgres_version": "PostgreSQL 16.10 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit"
|
|
} |