forked from mtusi2026/mtusi2026lab2
934 lines
32 KiB
JSON
934 lines
32 KiB
JSON
[
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3483.7,
|
|
"Total Cost": 3483.83,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 10.726,
|
|
"Actual Total Time": 10.761,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 3449.95,
|
|
"Total Cost": 3486.58,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 8.986,
|
|
"Actual Total Time": 9.996,
|
|
"Actual Rows": 13550,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 2377,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 537.97,
|
|
"Total Cost": 2436.12,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 1.314,
|
|
"Actual Total Time": 3.839,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Exact Heap Blocks": 215,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 325,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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_history_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 534.31,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 1.281,
|
|
"Actual Total Time": 1.283,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::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": 107,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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.498,
|
|
"Triggers": [],
|
|
"Execution Time": 11.286
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3483.7,
|
|
"Total Cost": 3483.83,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 9.039,
|
|
"Actual Total Time": 9.047,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 3449.95,
|
|
"Total Cost": 3486.58,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 7.75,
|
|
"Actual Total Time": 8.597,
|
|
"Actual Rows": 13550,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 2377,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 537.97,
|
|
"Total Cost": 2436.12,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 1.54,
|
|
"Actual Total Time": 3.504,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Exact Heap Blocks": 215,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 325,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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_history_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 534.31,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 1.505,
|
|
"Actual Total Time": 1.506,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::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": 107,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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.791,
|
|
"Triggers": [],
|
|
"Execution Time": 9.546
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3483.7,
|
|
"Total Cost": 3483.83,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 7.511,
|
|
"Actual Total Time": 7.52,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 3449.95,
|
|
"Total Cost": 3486.58,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 6.563,
|
|
"Actual Total Time": 7.068,
|
|
"Actual Rows": 13550,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 2377,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 537.97,
|
|
"Total Cost": 2436.12,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 1.33,
|
|
"Actual Total Time": 2.872,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Exact Heap Blocks": 215,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 325,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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_history_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 534.31,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 1.292,
|
|
"Actual Total Time": 1.293,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::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": 107,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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.77,
|
|
"Triggers": [],
|
|
"Execution Time": 8.024
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3483.7,
|
|
"Total Cost": 3483.83,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 11.438,
|
|
"Actual Total Time": 11.454,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 3449.95,
|
|
"Total Cost": 3486.58,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 10.158,
|
|
"Actual Total Time": 10.913,
|
|
"Actual Rows": 13550,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 2377,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 537.97,
|
|
"Total Cost": 2436.12,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 1.262,
|
|
"Actual Total Time": 4.467,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Exact Heap Blocks": 215,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 325,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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_history_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 534.31,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 1.216,
|
|
"Actual Total Time": 1.218,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::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": 107,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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.748,
|
|
"Triggers": [],
|
|
"Execution Time": 12.108
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3483.7,
|
|
"Total Cost": 3483.83,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 14.981,
|
|
"Actual Total Time": 14.989,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 3449.95,
|
|
"Total Cost": 3486.58,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 13.989,
|
|
"Actual Total Time": 14.533,
|
|
"Actual Rows": 13550,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 2377,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 537.97,
|
|
"Total Cost": 2436.12,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 1.44,
|
|
"Actual Total Time": 4.544,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Exact Heap Blocks": 215,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 325,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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_history_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 534.31,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 1.392,
|
|
"Actual Total Time": 1.393,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::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": 107,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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.859,
|
|
"Triggers": [],
|
|
"Execution Time": 15.625
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3483.7,
|
|
"Total Cost": 3483.83,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 12.365,
|
|
"Actual Total Time": 12.374,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 3449.95,
|
|
"Total Cost": 3486.58,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 11.186,
|
|
"Actual Total Time": 11.87,
|
|
"Actual Rows": 13550,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 2377,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 537.97,
|
|
"Total Cost": 2436.12,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 1.145,
|
|
"Actual Total Time": 3.649,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Exact Heap Blocks": 215,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 325,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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_history_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 534.31,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 1.103,
|
|
"Actual Total Time": 1.105,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::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": 107,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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.71,
|
|
"Triggers": [],
|
|
"Execution Time": 12.976
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3483.7,
|
|
"Total Cost": 3483.83,
|
|
"Plan Rows": 50,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 10.253,
|
|
"Actual Total Time": 10.261,
|
|
"Actual Rows": 50,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 3449.95,
|
|
"Total Cost": 3486.58,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 9.109,
|
|
"Actual Total Time": 9.707,
|
|
"Actual Rows": 13550,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 2377,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 331,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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": 537.97,
|
|
"Total Cost": 2436.12,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 86,
|
|
"Actual Startup Time": 0.893,
|
|
"Actual Total Time": 2.644,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Exact Heap Blocks": 215,
|
|
"Lossy Heap Blocks": 0,
|
|
"Shared Hit Blocks": 325,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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_history_idx",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 534.31,
|
|
"Plan Rows": 14652,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 0.868,
|
|
"Actual Total Time": 0.868,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::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": 107,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 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.529,
|
|
"Triggers": [],
|
|
"Execution Time": 10.742
|
|
}
|
|
]
|