2621 lines
89 KiB
JSON
2621 lines
89 KiB
JSON
[
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 70000,
|
|
"position": 0.1,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5732.59,
|
|
"Total Cost": 5738.45,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 7.421,
|
|
"Actual Total Time": 8.522,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2443,
|
|
"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": 5732.59,
|
|
"Total Cost": 10128.12,
|
|
"Plan Rows": 38222,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 7.421,
|
|
"Actual Total Time": 8.508,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 1,
|
|
"Workers Launched": 1,
|
|
"Shared Hit Blocks": 2443,
|
|
"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": 4732.58,
|
|
"Total Cost": 4828.13,
|
|
"Plan Rows": 38222,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 6.621,
|
|
"Actual Total Time": 6.624,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 2,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 38,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 2443,
|
|
"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": 38,
|
|
"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": 3457.41,
|
|
"Plan Rows": 38222,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.215,
|
|
"Actual Total Time": 4.164,
|
|
"Actual Rows": 31500,
|
|
"Actual Loops": 2,
|
|
"Filter": "((chat_id = 'fb372790-4b73-5a45-c97c-7e4287fa05be'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.007+00'::timestamp with time zone, '9cc0c1db-51d1-5bf2-e5a4-83cb93303974'::uuid)))",
|
|
"Rows Removed by Filter": 18500,
|
|
"Shared Hit Blocks": 2428,
|
|
"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.031,
|
|
"Triggers": [],
|
|
"Execution Time": 8.532
|
|
}
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 70000,
|
|
"position": 0.5,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 5354.06,
|
|
"Total Cost": 5359.93,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 5.792,
|
|
"Actual Total Time": 7.033,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2443,
|
|
"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": 5354.06,
|
|
"Total Cost": 8444.8,
|
|
"Plan Rows": 26876,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 5.792,
|
|
"Actual Total Time": 7.028,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 1,
|
|
"Workers Launched": 1,
|
|
"Shared Hit Blocks": 2443,
|
|
"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": 4354.05,
|
|
"Total Cost": 4421.24,
|
|
"Plan Rows": 26876,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 4.884,
|
|
"Actual Total Time": 4.886,
|
|
"Actual Rows": 40,
|
|
"Actual Loops": 2,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 38,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 2443,
|
|
"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": 38,
|
|
"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": 3457.41,
|
|
"Plan Rows": 26876,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 1.017,
|
|
"Actual Total Time": 3.623,
|
|
"Actual Rows": 17500,
|
|
"Actual Loops": 2,
|
|
"Filter": "((chat_id = 'fb372790-4b73-5a45-c97c-7e4287fa05be'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.035+00'::timestamp with time zone, '169ee7a7-ca0d-aa05-bd8c-a1eb275708e7'::uuid)))",
|
|
"Rows Removed by Filter": 32500,
|
|
"Shared Hit Blocks": 2428,
|
|
"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.038,
|
|
"Triggers": [],
|
|
"Execution Time": 7.042
|
|
}
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 70000,
|
|
"position": 0.9,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 4967.83,
|
|
"Total Cost": 4973.69,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 25.942,
|
|
"Actual Total Time": 27.248,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2443,
|
|
"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": 4967.83,
|
|
"Total Cost": 6727.21,
|
|
"Plan Rows": 15299,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 25.942,
|
|
"Actual Total Time": 27.243,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 1,
|
|
"Workers Launched": 1,
|
|
"Shared Hit Blocks": 2443,
|
|
"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": 3967.82,
|
|
"Total Cost": 4006.07,
|
|
"Plan Rows": 15299,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 14.755,
|
|
"Actual Total Time": 14.763,
|
|
"Actual Rows": 26,
|
|
"Actual Loops": 2,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 38,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 2443,
|
|
"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": "quicksort",
|
|
"Sort Space Used": 25,
|
|
"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": 3457.41,
|
|
"Plan Rows": 15299,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 13.398,
|
|
"Actual Total Time": 14.487,
|
|
"Actual Rows": 3500,
|
|
"Actual Loops": 2,
|
|
"Filter": "((chat_id = 'fb372790-4b73-5a45-c97c-7e4287fa05be'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.063+00'::timestamp with time zone, '987963b5-9cc6-d246-e263-52373e7f4b96'::uuid)))",
|
|
"Rows Removed by Filter": 46500,
|
|
"Shared Hit Blocks": 2428,
|
|
"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.047,
|
|
"Triggers": [],
|
|
"Execution Time": 27.257
|
|
}
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 20000,
|
|
"position": 0.1,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3191.11,
|
|
"Total Cost": 3191.24,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 3.535,
|
|
"Actual Total Time": 3.542,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 506,
|
|
"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": 3191.11,
|
|
"Total Cost": 3205.3,
|
|
"Plan Rows": 5677,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 3.534,
|
|
"Actual Total Time": 3.538,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 38,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 506,
|
|
"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": 220.91,
|
|
"Total Cost": 3001.71,
|
|
"Plan Rows": 5677,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.442,
|
|
"Actual Total Time": 2.23,
|
|
"Actual Rows": 18000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '096d532a-b923-0f13-8dc9-243f47b54ac3'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.072+00'::timestamp with time zone, '97b900c6-4a0c-f323-4d98-d97c50488136'::uuid))",
|
|
"Rows Removed by Filter": 2000,
|
|
"Exact Heap Blocks": 489,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 506,
|
|
"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": "messages_chat_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 219.49,
|
|
"Plan Rows": 20160,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.29,
|
|
"Actual Total Time": 0.291,
|
|
"Actual Rows": 20000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '096d532a-b923-0f13-8dc9-243f47b54ac3'::uuid)",
|
|
"Shared Hit Blocks": 17,
|
|
"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.043,
|
|
"Triggers": [],
|
|
"Execution Time": 3.549
|
|
}
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 20000,
|
|
"position": 0.5,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3136.93,
|
|
"Total Cost": 3137.05,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 2.648,
|
|
"Actual Total Time": 2.654,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 506,
|
|
"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": 3136.93,
|
|
"Total Cost": 3147.09,
|
|
"Plan Rows": 4065,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 2.647,
|
|
"Actual Total Time": 2.65,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 38,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 506,
|
|
"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": 220.51,
|
|
"Total Cost": 3001.31,
|
|
"Plan Rows": 4065,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.94,
|
|
"Actual Total Time": 1.93,
|
|
"Actual Rows": 10000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '096d532a-b923-0f13-8dc9-243f47b54ac3'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.08+00'::timestamp with time zone, '9042bcb2-df86-667b-9e54-e6e6c0c7923a'::uuid))",
|
|
"Rows Removed by Filter": 10000,
|
|
"Exact Heap Blocks": 489,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 506,
|
|
"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": "messages_chat_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 219.49,
|
|
"Plan Rows": 20160,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.276,
|
|
"Actual Total Time": 0.276,
|
|
"Actual Rows": 20000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '096d532a-b923-0f13-8dc9-243f47b54ac3'::uuid)",
|
|
"Shared Hit Blocks": 17,
|
|
"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.03,
|
|
"Triggers": [],
|
|
"Execution Time": 2.66
|
|
}
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 20000,
|
|
"position": 0.9,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3081.5,
|
|
"Total Cost": 3081.63,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 1.813,
|
|
"Actual Total Time": 1.819,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 506,
|
|
"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": 3081.5,
|
|
"Total Cost": 3087.54,
|
|
"Plan Rows": 2416,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 1.813,
|
|
"Actual Total Time": 1.816,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 38,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 506,
|
|
"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": 220.1,
|
|
"Total Cost": 3000.9,
|
|
"Plan Rows": 2416,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 1.459,
|
|
"Actual Total Time": 1.667,
|
|
"Actual Rows": 2000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '096d532a-b923-0f13-8dc9-243f47b54ac3'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.088+00'::timestamp with time zone, '81028714-cb0a-8e0f-6d74-4c379351efc2'::uuid))",
|
|
"Rows Removed by Filter": 18000,
|
|
"Exact Heap Blocks": 489,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 506,
|
|
"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": "messages_chat_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 219.49,
|
|
"Plan Rows": 20160,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.277,
|
|
"Actual Total Time": 0.277,
|
|
"Actual Rows": 20000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '096d532a-b923-0f13-8dc9-243f47b54ac3'::uuid)",
|
|
"Shared Hit Blocks": 17,
|
|
"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.027,
|
|
"Triggers": [],
|
|
"Execution Time": 1.827
|
|
}
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 9000,
|
|
"position": 0.1,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 2710.71,
|
|
"Total Cost": 2710.84,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 1.58,
|
|
"Actual Total Time": 1.586,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 230,
|
|
"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": 2710.71,
|
|
"Total Cost": 2712.76,
|
|
"Plan Rows": 818,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 1.58,
|
|
"Actual Total Time": 1.582,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 38,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 230,
|
|
"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": 99.37,
|
|
"Total Cost": 2683.42,
|
|
"Plan Rows": 818,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.192,
|
|
"Actual Total Time": 1.001,
|
|
"Actual Rows": 8100,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '35bbad77-7634-ca61-4fd8-5d37539c23b8'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.0909+00'::timestamp with time zone, 'b4d17acc-f297-d5d5-746e-2ef777eaa364'::uuid))",
|
|
"Rows Removed by Filter": 900,
|
|
"Exact Heap Blocks": 221,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 230,
|
|
"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": "messages_chat_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 99.17,
|
|
"Plan Rows": 8917,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.121,
|
|
"Actual Total Time": 0.121,
|
|
"Actual Rows": 9000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '35bbad77-7634-ca61-4fd8-5d37539c23b8'::uuid)",
|
|
"Shared Hit Blocks": 9,
|
|
"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.021,
|
|
"Triggers": [],
|
|
"Execution Time": 1.592
|
|
}
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 9000,
|
|
"position": 0.5,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 2699.82,
|
|
"Total Cost": 2699.95,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 1.21,
|
|
"Actual Total Time": 1.216,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 230,
|
|
"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": 2699.82,
|
|
"Total Cost": 2701.06,
|
|
"Plan Rows": 494,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 1.209,
|
|
"Actual Total Time": 1.212,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 38,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 230,
|
|
"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": 99.29,
|
|
"Total Cost": 2683.34,
|
|
"Plan Rows": 494,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.437,
|
|
"Actual Total Time": 0.889,
|
|
"Actual Rows": 4500,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '35bbad77-7634-ca61-4fd8-5d37539c23b8'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.0945+00'::timestamp with time zone, '64cc6094-35b0-52bc-2c33-655d810cbabc'::uuid))",
|
|
"Rows Removed by Filter": 4500,
|
|
"Exact Heap Blocks": 221,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 230,
|
|
"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": "messages_chat_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 99.17,
|
|
"Plan Rows": 8917,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.121,
|
|
"Actual Total Time": 0.121,
|
|
"Actual Rows": 9000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '35bbad77-7634-ca61-4fd8-5d37539c23b8'::uuid)",
|
|
"Shared Hit Blocks": 9,
|
|
"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.02,
|
|
"Triggers": [],
|
|
"Execution Time": 1.222
|
|
}
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 9000,
|
|
"position": 0.9,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 2689.0,
|
|
"Total Cost": 2689.13,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.834,
|
|
"Actual Total Time": 0.84,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 230,
|
|
"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": 2689.0,
|
|
"Total Cost": 2689.43,
|
|
"Plan Rows": 172,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.834,
|
|
"Actual Total Time": 0.836,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 38,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 230,
|
|
"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": 99.21,
|
|
"Total Cost": 2683.26,
|
|
"Plan Rows": 172,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.661,
|
|
"Actual Total Time": 0.766,
|
|
"Actual Rows": 900,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '35bbad77-7634-ca61-4fd8-5d37539c23b8'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.0981+00'::timestamp with time zone, '8de6f8f9-25ec-97e3-e3b7-59eac1d2fd4c'::uuid))",
|
|
"Rows Removed by Filter": 8100,
|
|
"Exact Heap Blocks": 221,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 230,
|
|
"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": "messages_chat_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 99.17,
|
|
"Plan Rows": 8917,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.12,
|
|
"Actual Total Time": 0.12,
|
|
"Actual Rows": 9000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '35bbad77-7634-ca61-4fd8-5d37539c23b8'::uuid)",
|
|
"Shared Hit Blocks": 9,
|
|
"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.035,
|
|
"Triggers": [],
|
|
"Execution Time": 0.846
|
|
}
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 1000,
|
|
"position": 0.1,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1993.42,
|
|
"Total Cost": 1993.45,
|
|
"Plan Rows": 11,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.192,
|
|
"Actual Total Time": 0.198,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 27,
|
|
"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": 1993.42,
|
|
"Total Cost": 1993.45,
|
|
"Plan Rows": 11,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.192,
|
|
"Actual Total Time": 0.194,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 38,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 27,
|
|
"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": 12.62,
|
|
"Total Cost": 1993.23,
|
|
"Plan Rows": 11,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.024,
|
|
"Actual Total Time": 0.125,
|
|
"Actual Rows": 900,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = 'a3c16613-13f1-93e3-af30-521782e6eb21'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.0991+00'::timestamp with time zone, 'a1580a3c-2826-e768-e4ea-f6c5a0e7171b'::uuid))",
|
|
"Rows Removed by Filter": 100,
|
|
"Exact Heap Blocks": 25,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 27,
|
|
"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": "messages_chat_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 12.62,
|
|
"Plan Rows": 1110,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.015,
|
|
"Actual Total Time": 0.015,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = 'a3c16613-13f1-93e3-af30-521782e6eb21'::uuid)",
|
|
"Shared Hit Blocks": 2,
|
|
"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.02,
|
|
"Triggers": [],
|
|
"Execution Time": 0.204
|
|
}
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 1000,
|
|
"position": 0.5,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1993.31,
|
|
"Total Cost": 1993.32,
|
|
"Plan Rows": 6,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.139,
|
|
"Actual Total Time": 0.145,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 27,
|
|
"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": 1993.31,
|
|
"Total Cost": 1993.32,
|
|
"Plan Rows": 6,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.139,
|
|
"Actual Total Time": 0.141,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 38,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 27,
|
|
"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": 12.62,
|
|
"Total Cost": 1993.23,
|
|
"Plan Rows": 6,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.051,
|
|
"Actual Total Time": 0.1,
|
|
"Actual Rows": 500,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = 'a3c16613-13f1-93e3-af30-521782e6eb21'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.0995+00'::timestamp with time zone, '86263544-3ca9-88ac-6a18-01fe3ed3d579'::uuid))",
|
|
"Rows Removed by Filter": 500,
|
|
"Exact Heap Blocks": 25,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 27,
|
|
"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": "messages_chat_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 12.62,
|
|
"Plan Rows": 1110,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.015,
|
|
"Actual Total Time": 0.015,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = 'a3c16613-13f1-93e3-af30-521782e6eb21'::uuid)",
|
|
"Shared Hit Blocks": 2,
|
|
"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.019,
|
|
"Triggers": [],
|
|
"Execution Time": 0.151
|
|
}
|
|
},
|
|
{
|
|
"variant": "chat_only",
|
|
"chat_size": 1000,
|
|
"position": 0.9,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1993.24,
|
|
"Total Cost": 1993.24,
|
|
"Plan Rows": 1,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.095,
|
|
"Actual Total Time": 0.101,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 27,
|
|
"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": 1993.24,
|
|
"Total Cost": 1993.24,
|
|
"Plan Rows": 1,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.095,
|
|
"Actual Total Time": 0.097,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 27,
|
|
"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": 12.62,
|
|
"Total Cost": 1993.23,
|
|
"Plan Rows": 1,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.077,
|
|
"Actual Total Time": 0.086,
|
|
"Actual Rows": 100,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = 'a3c16613-13f1-93e3-af30-521782e6eb21'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.0999+00'::timestamp with time zone, 'dc2ec078-4b31-5bfc-d9ac-d4e6671f761b'::uuid))",
|
|
"Rows Removed by Filter": 900,
|
|
"Exact Heap Blocks": 25,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 27,
|
|
"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": "messages_chat_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 12.62,
|
|
"Plan Rows": 1110,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.015,
|
|
"Actual Total Time": 0.015,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = 'a3c16613-13f1-93e3-af30-521782e6eb21'::uuid)",
|
|
"Shared Hit Blocks": 2,
|
|
"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.02,
|
|
"Triggers": [],
|
|
"Execution Time": 0.106
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 70000,
|
|
"position": 0.1,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 10.63,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.014,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 13039.29,
|
|
"Plan Rows": 65139,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.01,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = 'fb372790-4b73-5a45-c97c-7e4287fa05be'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.007+00'::timestamp with time zone, '9cc0c1db-51d1-5bf2-e5a4-83cb93303974'::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.017,
|
|
"Triggers": [],
|
|
"Execution Time": 0.021
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 70000,
|
|
"position": 0.5,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 13.82,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.014,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 11922.0,
|
|
"Plan Rows": 45372,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.01,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = 'fb372790-4b73-5a45-c97c-7e4287fa05be'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.035+00'::timestamp with time zone, '169ee7a7-ca0d-aa05-bd8c-a1eb275708e7'::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.017,
|
|
"Triggers": [],
|
|
"Execution Time": 0.019
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 70000,
|
|
"position": 0.9,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 21.74,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.014,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 10814.04,
|
|
"Plan Rows": 25860,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.01,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = 'fb372790-4b73-5a45-c97c-7e4287fa05be'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.063+00'::timestamp with time zone, '987963b5-9cc6-d246-e263-52373e7f4b96'::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.017,
|
|
"Triggers": [],
|
|
"Execution Time": 0.019
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 20000,
|
|
"position": 0.1,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 88.93,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.003,
|
|
"Actual Total Time": 0.014,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 9665.82,
|
|
"Plan Rows": 5569,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.003,
|
|
"Actual Total Time": 0.009,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '096d532a-b923-0f13-8dc9-243f47b54ac3'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.072+00'::timestamp with time zone, '97b900c6-4a0c-f323-4d98-d97c50488136'::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.017,
|
|
"Triggers": [],
|
|
"Execution Time": 0.018
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 20000,
|
|
"position": 0.5,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 111.12,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.004,
|
|
"Actual Total Time": 0.013,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8668.14,
|
|
"Plan Rows": 3993,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.004,
|
|
"Actual Total Time": 0.009,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '096d532a-b923-0f13-8dc9-243f47b54ac3'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.08+00'::timestamp with time zone, '9042bcb2-df86-667b-9e54-e6e6c0c7923a'::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.016,
|
|
"Triggers": [],
|
|
"Execution Time": 0.018
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 20000,
|
|
"position": 0.9,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 134.87,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.003,
|
|
"Actual Total Time": 0.013,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 6322.47,
|
|
"Plan Rows": 2398,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.003,
|
|
"Actual Total Time": 0.009,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '096d532a-b923-0f13-8dc9-243f47b54ac3'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.088+00'::timestamp with time zone, '81028714-cb0a-8e0f-6d74-4c379351efc2'::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.017,
|
|
"Triggers": [],
|
|
"Execution Time": 0.018
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 9000,
|
|
"position": 0.1,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 171.67,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.003,
|
|
"Actual Total Time": 0.013,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 2737.17,
|
|
"Plan Rows": 815,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.003,
|
|
"Actual Total Time": 0.009,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '35bbad77-7634-ca61-4fd8-5d37539c23b8'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0909+00'::timestamp with time zone, 'b4d17acc-f297-d5d5-746e-2ef777eaa364'::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.017,
|
|
"Triggers": [],
|
|
"Execution Time": 0.018
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 9000,
|
|
"position": 0.5,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 182.11,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.013,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 1767.48,
|
|
"Plan Rows": 496,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.009,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '35bbad77-7634-ca61-4fd8-5d37539c23b8'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0945+00'::timestamp with time zone, '64cc6094-35b0-52bc-2c33-655d810cbabc'::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.019,
|
|
"Triggers": [],
|
|
"Execution Time": 0.019
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 9000,
|
|
"position": 0.9,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 194.46,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.013,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 635.83,
|
|
"Plan Rows": 167,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.004,
|
|
"Actual Total Time": 0.009,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '35bbad77-7634-ca61-4fd8-5d37539c23b8'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0981+00'::timestamp with time zone, '8de6f8f9-25ec-97e3-e3b7-59eac1d2fd4c'::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.021,
|
|
"Triggers": [],
|
|
"Execution Time": 0.019
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 1000,
|
|
"position": 0.1,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 39.4,
|
|
"Plan Rows": 9,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.014,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 39.4,
|
|
"Plan Rows": 9,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.009,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = 'a3c16613-13f1-93e3-af30-521782e6eb21'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0991+00'::timestamp with time zone, 'a1580a3c-2826-e768-e4ea-f6c5a0e7171b'::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.02,
|
|
"Triggers": [],
|
|
"Execution Time": 0.019
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 1000,
|
|
"position": 0.5,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 23.92,
|
|
"Plan Rows": 5,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.014,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 23.92,
|
|
"Plan Rows": 5,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.005,
|
|
"Actual Total Time": 0.009,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = 'a3c16613-13f1-93e3-af30-521782e6eb21'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0995+00'::timestamp with time zone, '86263544-3ca9-88ac-6a18-01fe3ed3d579'::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.018
|
|
}
|
|
},
|
|
{
|
|
"variant": "history",
|
|
"chat_size": 1000,
|
|
"position": 0.9,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.44,
|
|
"Plan Rows": 1,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.004,
|
|
"Actual Total Time": 0.012,
|
|
"Actual Rows": 51,
|
|
"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": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.44,
|
|
"Plan Rows": 1,
|
|
"Plan Width": 160,
|
|
"Actual Startup Time": 0.004,
|
|
"Actual Total Time": 0.008,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = 'a3c16613-13f1-93e3-af30-521782e6eb21'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0999+00'::timestamp with time zone, 'dc2ec078-4b31-5bfc-d9ac-d4e6671f761b'::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.017,
|
|
"Triggers": [],
|
|
"Execution Time": 0.017
|
|
}
|
|
}
|
|
] |