Prepare verified laboratory 2 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:31:17 +03:00
parent 65003b6119
commit 62d7c2023c
85 changed files with 9426 additions and 38 deletions
@@ -0,0 +1,145 @@
[
{
"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.380,
"Actual Total Time": 6.963,
"Actual Rows": 51.00,
"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.40,
"Plan Rows": 27044,
"Plan Width": 71,
"Actual Startup Time": 5.378,
"Actual Total Time": 6.959,
"Actual Rows": 51.00,
"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.00,
"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.00,
"Total Cost": 2264.44,
"Plan Rows": 15908,
"Plan Width": 71,
"Actual Startup Time": 2.269,
"Actual Total Time": 3.504,
"Actual Rows": 10000.50,
"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
}
]
@@ -0,0 +1,125 @@
[
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.00,
"Total Cost": 32.50,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 5.310,
"Actual Total Time": 5.310,
"Actual Rows": 0.00,
"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.00,
"Total Cost": 32.50,
"Plan Rows": 1000,
"Plan Width": 88,
"Actual Startup Time": 0.077,
"Actual Total Time": 1.233,
"Actual Rows": 1000.00,
"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.00,
"Total Cost": 20.00,
"Plan Rows": 1000,
"Plan Width": 112,
"Actual Startup Time": 0.076,
"Actual Total Time": 1.121,
"Actual Rows": 1000.00,
"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
}
]
+480
View File
@@ -0,0 +1,480 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="648pt" height="252pt" viewBox="0 0 648 252" xmlns="http://www.w3.org/2000/svg" version="1.1">
<metadata>
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:date>2026-11-12T16:36:05.047255</dc:date>
<dc:format>image/svg+xml</dc:format>
<dc:creator>
<cc:Agent>
<dc:title>Matplotlib v3.11.2, https://matplotlib.org/</dc:title>
</cc:Agent>
</dc:creator>
</cc:Work>
</rdf:RDF>
</metadata>
<defs>
<style type="text/css">*{stroke-linejoin: round; stroke-linecap: butt}</style>
</defs>
<g id="figure_1">
<g id="patch_1">
<path d="M 0 252
L 648 252
L 648 0
L 0 0
z
" style="fill: #ffffff"/>
</g>
<g id="axes_1">
<g id="patch_2">
<path d="M 47.501021 231.998979
L 326.1475 231.998979
L 326.1475 36.119782
L 47.501021 36.119782
z
" style="fill: #ffffff"/>
</g>
<g id="patch_3">
<path d="M 60.16677 89679.621856
L 172.751206 89679.621856
L 172.751206 45.023382
L 60.16677 45.023382
z
" clip-path="url(#p6814e01ebe)" style="fill: #6b7280"/>
</g>
<g id="patch_4">
<path d="M 200.897315 89679.621856
L 313.481751 89679.621856
L 313.481751 223.095379
L 200.897315 223.095379
z
" clip-path="url(#p6814e01ebe)" style="fill: #2563eb"/>
</g>
<g id="matplotlib.axis_1">
<g id="xtick_1">
<g id="line2d_1">
<defs>
<path id="ma83e7220dd" d="M 0 0
L 0 3.5
" style="stroke: #000000; stroke-width: 0.8"/>
</defs>
<g>
<use xlink:href="#ma83e7220dd" x="116.458988" y="231.998979" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_1">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="116.458988" y="246.597416" transform="rotate(-0 116.458988 246.597416)">chat_id</text>
</g>
</g>
<g id="xtick_2">
<g id="line2d_2">
<g>
<use xlink:href="#ma83e7220dd" x="257.189533" y="231.998979" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_2">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="257.189533" y="246.597416" transform="rotate(-0 257.189533 246.597416)">chat_id + time + id</text>
</g>
</g>
</g>
<g id="matplotlib.axis_2">
<g id="ytick_1">
<g id="line2d_3">
<defs>
<path id="meafe312f9a" d="M 0 0
L -3.5 0
" style="stroke: #000000; stroke-width: 0.8"/>
</defs>
<g>
<use xlink:href="#meafe312f9a" x="47.501021" y="210.31824" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_3">
<!-- $\mathdefault{10^{-1}}$ -->
<g transform="translate(17.001021 214.96824)">
<text>
<tspan x="0" y="-0.762187" style="font-size: 10px; font-family: 'DejaVu Sans'">1</tspan>
<tspan x="6.362305" y="-0.762187" style="font-size: 10px; font-family: 'DejaVu Sans'">0</tspan>
<tspan x="12.820312" y="-4.892187" style="font-size: 7px; font-family: 'DejaVu Sans'">−</tspan>
<tspan x="18.685547" y="-4.892187" style="font-size: 7px; font-family: 'DejaVu Sans'">1</tspan>
</text>
</g>
</g>
</g>
<g id="ytick_2">
<g id="line2d_4">
<g>
<use xlink:href="#meafe312f9a" x="47.501021" y="120.759377" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_4">
<!-- $\mathdefault{10^{0}}$ -->
<g transform="translate(22.901021 125.459377)">
<text>
<tspan x="0" y="-0.674688" style="font-size: 10px; font-family: 'DejaVu Sans'">1</tspan>
<tspan x="6.362305" y="-0.674688" style="font-size: 10px; font-family: 'DejaVu Sans'">0</tspan>
<tspan x="12.820312" y="-4.804688" style="font-size: 7px; font-family: 'DejaVu Sans'">0</tspan>
</text>
</g>
</g>
</g>
<g id="ytick_3">
<g id="line2d_5">
<defs>
<path id="mea213b5217" d="M 0 0
L -2 0
" style="stroke: #000000; stroke-width: 0.6"/>
</defs>
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="230.186761" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_4">
<g id="line2d_6">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="224.191083" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_5">
<g id="line2d_7">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="218.99739" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_6">
<g id="line2d_8">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="214.416228" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_7">
<g id="line2d_9">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="183.358336" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_8">
<g id="line2d_10">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="167.587803" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_9">
<g id="line2d_11">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="156.398432" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_10">
<g id="line2d_12">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="147.719281" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_11">
<g id="line2d_13">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="140.627899" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_12">
<g id="line2d_14">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="134.63222" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_13">
<g id="line2d_15">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="129.438528" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_14">
<g id="line2d_16">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="124.857366" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_15">
<g id="line2d_17">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="93.799473" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_16">
<g id="line2d_18">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="78.02894" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_17">
<g id="line2d_19">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="66.839569" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_18">
<g id="line2d_20">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="58.160419" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_19">
<g id="line2d_21">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="51.069036" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_20">
<g id="line2d_22">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="45.073358" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_21">
<g id="line2d_23">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="39.879665" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="text_5">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="10.598678" y="134.059381" transform="rotate(-90 10.598678 134.059381)">Execution time, ms</text>
</g>
</g>
<g id="patch_5">
<path d="M 47.501021 231.998979
L 47.501021 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_6">
<path d="M 326.1475 231.998979
L 326.1475 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_7">
<path d="M 47.501021 231.998979
L 326.1475 231.998979
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_8">
<path d="M 47.501021 36.119782
L 326.1475 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="text_6">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="116.458988" y="41.023382" transform="rotate(-0 116.458988 41.023382)">7.009</text>
</g>
<g id="text_7">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="257.189533" y="219.095379" transform="rotate(-0 257.189533 219.095379)">0.072</text>
</g>
<g id="text_8">
<text style="font-size: 12px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="186.824261" y="30.119782" transform="rotate(-0 186.824261 30.119782)">Deep history page (51 rows)</text>
</g>
</g>
<g id="axes_2">
<g id="patch_9">
<path d="M 366.353281 231.998979
L 644.99976 231.998979
L 644.99976 36.119782
L 366.353281 36.119782
z
" style="fill: #ffffff"/>
</g>
<g id="patch_10">
<path d="M 379.01903 231.998979
L 491.603466 231.998979
L 491.603466 49.569244
L 379.01903 49.569244
z
" clip-path="url(#p34ed0a19f5)" style="fill: #6b7280"/>
</g>
<g id="patch_11">
<path d="M 519.749575 231.998979
L 632.334011 231.998979
L 632.334011 45.447363
L 519.749575 45.447363
z
" clip-path="url(#p34ed0a19f5)" style="fill: #2563eb"/>
</g>
<g id="matplotlib.axis_3">
<g id="xtick_3">
<g id="line2d_24">
<g>
<use xlink:href="#ma83e7220dd" x="435.311248" y="231.998979" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_9">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="435.311248" y="246.597416" transform="rotate(-0 435.311248 246.597416)">chat_id</text>
</g>
</g>
<g id="xtick_4">
<g id="line2d_25">
<g>
<use xlink:href="#ma83e7220dd" x="576.041793" y="231.998979" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_10">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="576.041793" y="246.597416" transform="rotate(-0 576.041793 246.597416)">chat_id + time + id</text>
</g>
</g>
</g>
<g id="matplotlib.axis_4">
<g id="ytick_22">
<g id="line2d_26">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="231.998979" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_11">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="235.797807" transform="rotate(-0 359.353281 235.797807)">0</text>
</g>
</g>
<g id="ytick_23">
<g id="line2d_27">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="209.536412" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_12">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="213.33524" transform="rotate(-0 359.353281 213.33524)">2</text>
</g>
</g>
<g id="ytick_24">
<g id="line2d_28">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="187.073846" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_13">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="190.872674" transform="rotate(-0 359.353281 190.872674)">4</text>
</g>
</g>
<g id="ytick_25">
<g id="line2d_29">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="164.611279" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_14">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="168.410107" transform="rotate(-0 359.353281 168.410107)">6</text>
</g>
</g>
<g id="ytick_26">
<g id="line2d_30">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="142.148712" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_15">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="145.947541" transform="rotate(-0 359.353281 145.947541)">8</text>
</g>
</g>
<g id="ytick_27">
<g id="line2d_31">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="119.686146" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_16">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="123.484974" transform="rotate(-0 359.353281 123.484974)">10</text>
</g>
</g>
<g id="ytick_28">
<g id="line2d_32">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="97.223579" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_17">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="101.022407" transform="rotate(-0 359.353281 101.022407)">12</text>
</g>
</g>
<g id="ytick_29">
<g id="line2d_33">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="74.761013" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_18">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="78.559841" transform="rotate(-0 359.353281 78.559841)">14</text>
</g>
</g>
<g id="ytick_30">
<g id="line2d_34">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="52.298446" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_19">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="56.097274" transform="rotate(-0 359.353281 56.097274)">16</text>
</g>
</g>
<g id="text_20">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="340.225938" y="134.059381" transform="rotate(-90 340.225938 134.059381)">Execution time, ms</text>
</g>
</g>
<g id="patch_12">
<path d="M 366.353281 231.998979
L 366.353281 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_13">
<path d="M 644.99976 231.998979
L 644.99976 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_14">
<path d="M 366.353281 231.998979
L 644.99976 231.998979
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_15">
<path d="M 366.353281 36.119782
L 644.99976 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="text_21">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="435.311248" y="45.569244" transform="rotate(-0 435.311248 45.569244)">16.243</text>
</g>
<g id="text_22">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="576.041793" y="41.447363" transform="rotate(-0 576.041793 41.447363)">16.610</text>
</g>
<g id="text_23">
<text style="font-size: 12px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="505.676521" y="30.119782" transform="rotate(-0 505.676521 30.119782)">Insert 1,000 messages</text>
</g>
</g>
<g id="text_24">
<text style="font-size: 12px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="324" y="12.118365" transform="rotate(-0 324 12.118365)">100,000 skewed messages; one EXPLAIN ANALYZE per index</text>
</g>
</g>
<defs>
<clipPath id="p6814e01ebe">
<rect x="47.501021" y="36.119782" width="278.646479" height="195.879196"/>
</clipPath>
<clipPath id="p34ed0a19f5">
<rect x="366.353281" y="36.119782" width="278.646479" height="195.879196"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 20 KiB

@@ -0,0 +1,78 @@
[
{
"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.00,
"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.030,
"Actual Total Time": 0.034,
"Actual Rows": 51.00,
"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
}
]
@@ -0,0 +1,125 @@
[
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.00,
"Total Cost": 32.50,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 5.299,
"Actual Total Time": 5.299,
"Actual Rows": 0.00,
"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.00,
"Total Cost": 32.50,
"Plan Rows": 1000,
"Plan Width": 88,
"Actual Startup Time": 0.054,
"Actual Total Time": 1.217,
"Actual Rows": 1000.00,
"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.00,
"Total Cost": 20.00,
"Plan Rows": 1000,
"Plan Width": 112,
"Actual Startup Time": 0.054,
"Actual Total Time": 1.104,
"Actual Rows": 1000.00,
"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.610
}
]
+1
View File
@@ -0,0 +1 @@
{"run_id":"8a1784b7aac7","started_at":"2026-11-12T13:13:44.368Z","state":"started"}
+513
View File
@@ -0,0 +1,513 @@
{
"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"
}
}