forked from mtusi2026/mtusi2026lab2
514 lines
17 KiB
JSON
514 lines
17 KiB
JSON
{
|
|
"run_id": "8a1784b7aac7",
|
|
"complete": true,
|
|
"dataset": {
|
|
"messages": 100000,
|
|
"distribution": [
|
|
90000,
|
|
9000,
|
|
1000
|
|
]
|
|
},
|
|
"plans": {
|
|
"chat_only": {
|
|
"read": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 3795.18,
|
|
"Total Cost": 3800.99,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 71,
|
|
"Actual Startup Time": 5.38,
|
|
"Actual Total Time": 6.963,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Shared Hit Blocks": 1250,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": 3795.18,
|
|
"Total Cost": 6877.4,
|
|
"Plan Rows": 27044,
|
|
"Plan Width": 71,
|
|
"Actual Startup Time": 5.378,
|
|
"Actual Total Time": 6.959,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Workers Planned": 1,
|
|
"Workers Launched": 1,
|
|
"Shared Hit Blocks": 1250,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": 2795.17,
|
|
"Total Cost": 2834.94,
|
|
"Plan Rows": 15908,
|
|
"Plan Width": 71,
|
|
"Actual Startup Time": 4.036,
|
|
"Actual Total Time": 4.038,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 2,
|
|
"Disabled": false,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 31,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 1250,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": 31,
|
|
"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,
|
|
"Total Cost": 2264.44,
|
|
"Plan Rows": 15908,
|
|
"Plan Width": 71,
|
|
"Actual Startup Time": 2.269,
|
|
"Actual Total Time": 3.504,
|
|
"Actual Rows": 10000.5,
|
|
"Actual Loops": 2,
|
|
"Disabled": false,
|
|
"Filter": "((chat_id = 'd5f6496b-22d2-4d83-9840-843c175d2196'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.07+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Filter": 40001,
|
|
"Shared Hit Blocks": 1235,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": 99,
|
|
"Shared Read Blocks": 1,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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.246,
|
|
"Triggers": [],
|
|
"Execution Time": 7.009
|
|
},
|
|
"write": {
|
|
"Plan": {
|
|
"Node Type": "ModifyTable",
|
|
"Operation": "Insert",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 32.5,
|
|
"Plan Rows": 0,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 5.31,
|
|
"Actual Total Time": 5.31,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Shared Hit Blocks": 6083,
|
|
"Shared Read Blocks": 2,
|
|
"Shared Dirtied Blocks": 18,
|
|
"Shared Written Blocks": 16,
|
|
"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": "Subquery Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Alias": "*SELECT*",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 32.5,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 88,
|
|
"Actual Startup Time": 0.077,
|
|
"Actual Total Time": 1.233,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"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,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Function Scan",
|
|
"Parent Relationship": "Subquery",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Function Name": "generate_series",
|
|
"Alias": "i",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 20,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 112,
|
|
"Actual Startup Time": 0.076,
|
|
"Actual Total Time": 1.121,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"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": {
|
|
"Shared Hit Blocks": 24,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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.102,
|
|
"Triggers": [
|
|
{
|
|
"Trigger Name": "RI_ConstraintTrigger_c_16467",
|
|
"Constraint Name": "messages_chat_id_fkey",
|
|
"Relation": "messages",
|
|
"Time": 3.453,
|
|
"Calls": 1000
|
|
},
|
|
{
|
|
"Trigger Name": "RI_ConstraintTrigger_c_16472",
|
|
"Constraint Name": "messages_sender_id_fkey",
|
|
"Relation": "messages",
|
|
"Time": 3.728,
|
|
"Calls": 1000
|
|
},
|
|
{
|
|
"Trigger Name": "RI_ConstraintTrigger_c_16477",
|
|
"Constraint Name": "messages_chat_id_sender_id_fkey",
|
|
"Relation": "messages",
|
|
"Time": 3.594,
|
|
"Calls": 1000
|
|
}
|
|
],
|
|
"Execution Time": 16.243
|
|
}
|
|
},
|
|
"history": {
|
|
"read": {
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 10.93,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 71,
|
|
"Actual Startup Time": 0.031,
|
|
"Actual Total Time": 0.037,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 3,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 5761.96,
|
|
"Plan Rows": 27952,
|
|
"Plan Width": 71,
|
|
"Actual Startup Time": 0.03,
|
|
"Actual Total Time": 0.034,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Index Cond": "((chat_id = 'd5f6496b-22d2-4d83-9840-843c175d2196'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.07+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Index Searches": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 3,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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": 112,
|
|
"Shared Read Blocks": 1,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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.276,
|
|
"Triggers": [],
|
|
"Execution Time": 0.072
|
|
},
|
|
"write": {
|
|
"Plan": {
|
|
"Node Type": "ModifyTable",
|
|
"Operation": "Insert",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 32.5,
|
|
"Plan Rows": 0,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 5.299,
|
|
"Actual Total Time": 5.299,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"Shared Hit Blocks": 5142,
|
|
"Shared Read Blocks": 2,
|
|
"Shared Dirtied Blocks": 26,
|
|
"Shared Written Blocks": 24,
|
|
"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": "Subquery Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Alias": "*SELECT*",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 32.5,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 88,
|
|
"Actual Startup Time": 0.054,
|
|
"Actual Total Time": 1.217,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"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,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Function Scan",
|
|
"Parent Relationship": "Subquery",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Function Name": "generate_series",
|
|
"Alias": "i",
|
|
"Startup Cost": 0,
|
|
"Total Cost": 20,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 112,
|
|
"Actual Startup Time": 0.054,
|
|
"Actual Total Time": 1.104,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"Disabled": false,
|
|
"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": {
|
|
"Shared Hit Blocks": 24,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"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.098,
|
|
"Triggers": [
|
|
{
|
|
"Trigger Name": "RI_ConstraintTrigger_c_16467",
|
|
"Constraint Name": "messages_chat_id_fkey",
|
|
"Relation": "messages",
|
|
"Time": 3.547,
|
|
"Calls": 1000
|
|
},
|
|
{
|
|
"Trigger Name": "RI_ConstraintTrigger_c_16472",
|
|
"Constraint Name": "messages_sender_id_fkey",
|
|
"Relation": "messages",
|
|
"Time": 3.867,
|
|
"Calls": 1000
|
|
},
|
|
{
|
|
"Trigger Name": "RI_ConstraintTrigger_c_16477",
|
|
"Constraint Name": "messages_chat_id_sender_id_fkey",
|
|
"Relation": "messages",
|
|
"Time": 3.739,
|
|
"Calls": 1000
|
|
}
|
|
],
|
|
"Execution Time": 16.61
|
|
}
|
|
}
|
|
},
|
|
"backup": {
|
|
"dump_seconds": 0.4851582589999998,
|
|
"bytes": 3034766,
|
|
"restore_seconds": 1.509961217,
|
|
"verified": {
|
|
"users": 7,
|
|
"chats": 5,
|
|
"members": 7,
|
|
"messages": 102003,
|
|
"research_messages": 102000,
|
|
"samples": [
|
|
{
|
|
"id": "8d10e913-b6a3-4ea4-a61a-42b38ad0c01c",
|
|
"text": "synthetic-1",
|
|
"created_at": "2026-01-01T00:00:00.000001+00:00"
|
|
},
|
|
{
|
|
"id": "49398fa6-3afb-4f81-90c8-8c5c8a2342bf",
|
|
"text": "synthetic-2",
|
|
"created_at": "2026-01-01T00:00:00.000002+00:00"
|
|
},
|
|
{
|
|
"id": "790effa7-630f-4267-a52d-63b6064a46e5",
|
|
"text": "synthetic-3",
|
|
"created_at": "2026-01-01T00:00:00.000003+00:00"
|
|
}
|
|
]
|
|
},
|
|
"target": "separate PostgreSQL container and persistent volume"
|
|
}
|
|
}
|