9104 lines
408 KiB
JSON
9104 lines
408 KiB
JSON
{
|
|
"date_utc": "2026-10-02T09:22:41Z",
|
|
"database": "experiment_5ac15e48fdf6",
|
|
"method": {
|
|
"sizes": [
|
|
80000,
|
|
15000,
|
|
4900,
|
|
100
|
|
],
|
|
"messages": 100000,
|
|
"page_size": 51,
|
|
"repeats": 3,
|
|
"clients": [
|
|
1,
|
|
4
|
|
],
|
|
"profile": "warm SQL keyset GET at 90% and first page; pgbench prepared; 100 transactions/client; 20 warmup transactions",
|
|
"write_profile": "1000-row INSERT plus real COMMIT, 3 repeats, pgbench single client on separate write_probe table",
|
|
"postgres_limits": {
|
|
"cpu": 2,
|
|
"memory_mib": 512
|
|
},
|
|
"host": "macOS-26.6.2-arm64-arm-64bit",
|
|
"clock": "SQL planner execution vs pgbench full transaction latency; excludes HTTP/auth/JSON",
|
|
"note": "Closed-loop; warm cache; one batch write transaction, not a maximum-capacity result"
|
|
},
|
|
"versions": {
|
|
"postgres": "PostgreSQL 17.6 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit",
|
|
"durability": "{\"fsync\" : \"on\", \"synchronous_commit\" : \"on\", \"full_page_writes\" : \"on\"}"
|
|
},
|
|
"variants": [
|
|
{
|
|
"name": "chat_only",
|
|
"index": "(chat_id)",
|
|
"index_bytes": 720896,
|
|
"reads": [
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 7349.6,
|
|
"Total Cost": 7355.47,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 16.234,
|
|
"Actual Total Time": 17.23,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2413,
|
|
"Shared Read Blocks": 70,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 7349.6,
|
|
"Total Cost": 12769.78,
|
|
"Plan Rows": 47132,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 16.234,
|
|
"Actual Total Time": 17.227,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 1,
|
|
"Workers Launched": 1,
|
|
"Shared Hit Blocks": 2413,
|
|
"Shared Read Blocks": 70,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6349.59,
|
|
"Total Cost": 6467.42,
|
|
"Plan Rows": 47132,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 11.186,
|
|
"Actual Total Time": 11.189,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 2,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 2413,
|
|
"Shared Read Blocks": 70,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 4777.17,
|
|
"Plan Rows": 47132,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.033,
|
|
"Actual Total Time": 7.322,
|
|
"Actual Rows": 40000,
|
|
"Actual Loops": 2,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000001'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 2398,
|
|
"Shared Read Blocks": 70,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 102,
|
|
"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.892,
|
|
"Triggers": [],
|
|
"Execution Time": 17.58
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 7349.6,
|
|
"Total Cost": 7355.47,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 11.525,
|
|
"Actual Total Time": 12.614,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2500,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 7349.6,
|
|
"Total Cost": 12769.78,
|
|
"Plan Rows": 47132,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 11.524,
|
|
"Actual Total Time": 12.611,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 1,
|
|
"Workers Launched": 1,
|
|
"Shared Hit Blocks": 2500,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6349.59,
|
|
"Total Cost": 6467.42,
|
|
"Plan Rows": 47132,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 10.331,
|
|
"Actual Total Time": 10.335,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 2,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 2500,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 4777.17,
|
|
"Plan Rows": 47132,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.014,
|
|
"Actual Total Time": 7.029,
|
|
"Actual Rows": 40000,
|
|
"Actual Loops": 2,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000001'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 2485,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.339,
|
|
"Triggers": [],
|
|
"Execution Time": 12.671
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 7349.6,
|
|
"Total Cost": 7355.47,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 11.862,
|
|
"Actual Total Time": 13.228,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2499,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Gather Merge",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 7349.6,
|
|
"Total Cost": 12769.78,
|
|
"Plan Rows": 47132,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 11.861,
|
|
"Actual Total Time": 13.224,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Workers Planned": 1,
|
|
"Workers Launched": 1,
|
|
"Shared Hit Blocks": 2499,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 6349.59,
|
|
"Total Cost": 6467.42,
|
|
"Plan Rows": 47132,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 10.765,
|
|
"Actual Total Time": 10.767,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 2,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 2499,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Workers": [
|
|
{
|
|
"Worker Number": 0,
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory"
|
|
}
|
|
],
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": true,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 4777.17,
|
|
"Plan Rows": 47132,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.013,
|
|
"Actual Total Time": 7.323,
|
|
"Actual Rows": 40000,
|
|
"Actual Loops": 2,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000001'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 2484,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Workers": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.282,
|
|
"Triggers": [],
|
|
"Execution Time": 13.284
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 11.537 ms\ninitial connection time = 0.965 ms\ntps = 86.678021 (without initial connection time)\n",
|
|
"latency_avg_ms": 11.537,
|
|
"tps": 86.678021,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 11.137 ms\ninitial connection time = 1.170 ms\ntps = 89.791997 (without initial connection time)\n",
|
|
"latency_avg_ms": 11.137,
|
|
"tps": 89.791997,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 11.530 ms\ninitial connection time = 2.035 ms\ntps = 86.734030 (without initial connection time)\n",
|
|
"latency_avg_ms": 11.53,
|
|
"tps": 86.73403,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 13.284,
|
|
"median_latency_ms": 11.53,
|
|
"median_tps": 86.73403,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 49.011 ms\ninitial connection time = 1.787 ms\ntps = 81.614931 (without initial connection time)\n",
|
|
"latency_avg_ms": 49.011,
|
|
"tps": 81.614931,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 50.676 ms\ninitial connection time = 1.884 ms\ntps = 78.933046 (without initial connection time)\n",
|
|
"latency_avg_ms": 50.676,
|
|
"tps": 78.933046,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 52.002 ms\ninitial connection time = 1.798 ms\ntps = 76.919438 (without initial connection time)\n",
|
|
"latency_avg_ms": 52.002,
|
|
"tps": 76.919438,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 13.284,
|
|
"median_latency_ms": 50.676,
|
|
"median_tps": 78.933046,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 4954.19,
|
|
"Total Cost": 4954.31,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 12.499,
|
|
"Actual Total Time": 12.504,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2429,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 4954.19,
|
|
"Total Cost": 4970.03,
|
|
"Plan Rows": 6339,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 12.498,
|
|
"Actual Total Time": 12.5,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 2429,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 4742.7,
|
|
"Plan Rows": 6339,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 10.264,
|
|
"Actual Total Time": 11.71,
|
|
"Actual Rows": 8001,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000001'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.072'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 71999,
|
|
"Shared Hit Blocks": 2423,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.361,
|
|
"Triggers": [],
|
|
"Execution Time": 12.561
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 4954.19,
|
|
"Total Cost": 4954.31,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 12.812,
|
|
"Actual Total Time": 12.816,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2429,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 4954.19,
|
|
"Total Cost": 4970.03,
|
|
"Plan Rows": 6339,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 12.81,
|
|
"Actual Total Time": 12.812,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 2429,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 4742.7,
|
|
"Plan Rows": 6339,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 10.631,
|
|
"Actual Total Time": 12.105,
|
|
"Actual Rows": 8001,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000001'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.072'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 71999,
|
|
"Shared Hit Blocks": 2423,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.309,
|
|
"Triggers": [],
|
|
"Execution Time": 12.858
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 4954.19,
|
|
"Total Cost": 4954.31,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 13.026,
|
|
"Actual Total Time": 13.03,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2429,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 4954.19,
|
|
"Total Cost": 4970.03,
|
|
"Plan Rows": 6339,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 13.025,
|
|
"Actual Total Time": 13.026,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 2429,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 4742.7,
|
|
"Plan Rows": 6339,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 10.795,
|
|
"Actual Total Time": 12.3,
|
|
"Actual Rows": 8001,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000001'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.072'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 71999,
|
|
"Shared Hit Blocks": 2423,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.322,
|
|
"Triggers": [],
|
|
"Execution Time": 13.082
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 11.053 ms\ninitial connection time = 1.015 ms\ntps = 90.469655 (without initial connection time)\n",
|
|
"latency_avg_ms": 11.053,
|
|
"tps": 90.469655,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 12.449 ms\ninitial connection time = 1.076 ms\ntps = 80.325543 (without initial connection time)\n",
|
|
"latency_avg_ms": 12.449,
|
|
"tps": 80.325543,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 11.030 ms\ninitial connection time = 1.085 ms\ntps = 90.665530 (without initial connection time)\n",
|
|
"latency_avg_ms": 11.03,
|
|
"tps": 90.66553,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 12.858,
|
|
"median_latency_ms": 11.053,
|
|
"median_tps": 90.469655,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 23.470 ms\ninitial connection time = 1.980 ms\ntps = 170.427432 (without initial connection time)\n",
|
|
"latency_avg_ms": 23.47,
|
|
"tps": 170.427432,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 23.482 ms\ninitial connection time = 1.966 ms\ntps = 170.346434 (without initial connection time)\n",
|
|
"latency_avg_ms": 23.482,
|
|
"tps": 170.346434,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 22.995 ms\ninitial connection time = 2.079 ms\ntps = 173.952372 (without initial connection time)\n",
|
|
"latency_avg_ms": 22.995,
|
|
"tps": 173.952372,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 12.858,
|
|
"median_latency_ms": 23.47,
|
|
"median_tps": 170.427432,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1584.94,
|
|
"Total Cost": 1585.07,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 9.799,
|
|
"Actual Total Time": 9.804,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 451,
|
|
"Shared Read Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1584.94,
|
|
"Total Cost": 1622.04,
|
|
"Plan Rows": 14839,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 9.798,
|
|
"Actual Total Time": 9.8,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 451,
|
|
"Shared Read Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 1089.88,
|
|
"Plan Rows": 14839,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.019,
|
|
"Actual Total Time": 8.375,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000002'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 445,
|
|
"Shared Read Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.266,
|
|
"Triggers": [],
|
|
"Execution Time": 9.853
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1584.94,
|
|
"Total Cost": 1585.07,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 4.026,
|
|
"Actual Total Time": 4.03,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 463,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1584.94,
|
|
"Total Cost": 1622.04,
|
|
"Plan Rows": 14839,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 4.025,
|
|
"Actual Total Time": 4.027,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 463,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 1089.88,
|
|
"Plan Rows": 14839,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.024,
|
|
"Actual Total Time": 2.737,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000002'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 457,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.296,
|
|
"Triggers": [],
|
|
"Execution Time": 4.074
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1584.94,
|
|
"Total Cost": 1585.07,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 4.135,
|
|
"Actual Total Time": 4.145,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 463,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1584.94,
|
|
"Total Cost": 1622.04,
|
|
"Plan Rows": 14839,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 4.133,
|
|
"Actual Total Time": 4.141,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 463,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 1089.88,
|
|
"Plan Rows": 14839,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.02,
|
|
"Actual Total Time": 2.821,
|
|
"Actual Rows": 15000,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000002'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 457,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.278,
|
|
"Triggers": [],
|
|
"Execution Time": 4.196
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 2.989 ms\ninitial connection time = 1.266 ms\ntps = 334.616028 (without initial connection time)\n",
|
|
"latency_avg_ms": 2.989,
|
|
"tps": 334.616028,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 3.050 ms\ninitial connection time = 1.143 ms\ntps = 327.897879 (without initial connection time)\n",
|
|
"latency_avg_ms": 3.05,
|
|
"tps": 327.897879,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 3.003 ms\ninitial connection time = 1.029 ms\ntps = 332.968178 (without initial connection time)\n",
|
|
"latency_avg_ms": 3.003,
|
|
"tps": 332.968178,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 4.196,
|
|
"median_latency_ms": 3.003,
|
|
"median_tps": 332.968178,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 6.663 ms\ninitial connection time = 1.632 ms\ntps = 600.316667 (without initial connection time)\n",
|
|
"latency_avg_ms": 6.663,
|
|
"tps": 600.316667,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 6.240 ms\ninitial connection time = 1.944 ms\ntps = 641.002014 (without initial connection time)\n",
|
|
"latency_avg_ms": 6.24,
|
|
"tps": 641.002014,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 5.873 ms\ninitial connection time = 1.669 ms\ntps = 681.106116 (without initial connection time)\n",
|
|
"latency_avg_ms": 5.873,
|
|
"tps": 681.106116,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 4.196,
|
|
"median_latency_ms": 6.24,
|
|
"median_tps": 641.002014,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1356.96,
|
|
"Total Cost": 1357.09,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 2.663,
|
|
"Actual Total Time": 2.667,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 463,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1356.96,
|
|
"Total Cost": 1382.27,
|
|
"Plan Rows": 10125,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 2.662,
|
|
"Actual Total Time": 2.664,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 463,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 1019.17,
|
|
"Plan Rows": 10125,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 2.12,
|
|
"Actual Total Time": 2.453,
|
|
"Actual Rows": 1501,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000002'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.0135'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 13499,
|
|
"Shared Hit Blocks": 457,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.323,
|
|
"Triggers": [],
|
|
"Execution Time": 2.716
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1356.96,
|
|
"Total Cost": 1357.09,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 2.453,
|
|
"Actual Total Time": 2.457,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 463,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1356.96,
|
|
"Total Cost": 1382.27,
|
|
"Plan Rows": 10125,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 2.452,
|
|
"Actual Total Time": 2.454,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 463,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 1019.17,
|
|
"Plan Rows": 10125,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 1.967,
|
|
"Actual Total Time": 2.261,
|
|
"Actual Rows": 1501,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000002'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.0135'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 13499,
|
|
"Shared Hit Blocks": 457,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.311,
|
|
"Triggers": [],
|
|
"Execution Time": 2.495
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1356.96,
|
|
"Total Cost": 1357.09,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 2.393,
|
|
"Actual Total Time": 2.397,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 463,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 1356.96,
|
|
"Total Cost": 1382.27,
|
|
"Plan Rows": 10125,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 2.392,
|
|
"Actual Total Time": 2.394,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 463,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 1019.17,
|
|
"Plan Rows": 10125,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 1.908,
|
|
"Actual Total Time": 2.199,
|
|
"Actual Rows": 1501,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000002'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.0135'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 13499,
|
|
"Shared Hit Blocks": 457,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.299,
|
|
"Triggers": [],
|
|
"Execution Time": 2.434
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 1.300 ms\ninitial connection time = 1.291 ms\ntps = 768.964589 (without initial connection time)\n",
|
|
"latency_avg_ms": 1.3,
|
|
"tps": 768.964589,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 1.105 ms\ninitial connection time = 1.200 ms\ntps = 904.584434 (without initial connection time)\n",
|
|
"latency_avg_ms": 1.105,
|
|
"tps": 904.584434,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 1.309 ms\ninitial connection time = 1.220 ms\ntps = 763.831071 (without initial connection time)\n",
|
|
"latency_avg_ms": 1.309,
|
|
"tps": 763.831071,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 2.495,
|
|
"median_latency_ms": 1.3,
|
|
"median_tps": 768.964589,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 1.829 ms\ninitial connection time = 1.749 ms\ntps = 2186.497286 (without initial connection time)\n",
|
|
"latency_avg_ms": 1.829,
|
|
"tps": 2186.497286,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 1.874 ms\ninitial connection time = 1.850 ms\ntps = 2134.095917 (without initial connection time)\n",
|
|
"latency_avg_ms": 1.874,
|
|
"tps": 2134.095917,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 1.938 ms\ninitial connection time = 1.688 ms\ntps = 2063.642742 (without initial connection time)\n",
|
|
"latency_avg_ms": 1.938,
|
|
"tps": 2063.642742,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 2.495,
|
|
"median_latency_ms": 1.874,
|
|
"median_tps": 2134.095917,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 528.97,
|
|
"Total Cost": 529.09,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 1.977,
|
|
"Actual Total Time": 1.981,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 153,
|
|
"Shared Read Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 528.97,
|
|
"Total Cost": 541.26,
|
|
"Plan Rows": 4916,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 1.976,
|
|
"Actual Total Time": 1.978,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 153,
|
|
"Shared Read Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 364.96,
|
|
"Plan Rows": 4916,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.022,
|
|
"Actual Total Time": 1.518,
|
|
"Actual Rows": 4900,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000003'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 147,
|
|
"Shared Read Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.294,
|
|
"Triggers": [],
|
|
"Execution Time": 2.023
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 528.97,
|
|
"Total Cost": 529.09,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 1.237,
|
|
"Actual Total Time": 1.24,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 157,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 528.97,
|
|
"Total Cost": 541.26,
|
|
"Plan Rows": 4916,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 1.236,
|
|
"Actual Total Time": 1.238,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 157,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 364.96,
|
|
"Plan Rows": 4916,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.018,
|
|
"Actual Total Time": 0.815,
|
|
"Actual Rows": 4900,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000003'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 151,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.309,
|
|
"Triggers": [],
|
|
"Execution Time": 1.275
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 528.97,
|
|
"Total Cost": 529.09,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 1.369,
|
|
"Actual Total Time": 1.375,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 157,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 528.97,
|
|
"Total Cost": 541.26,
|
|
"Plan Rows": 4916,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 1.369,
|
|
"Actual Total Time": 1.372,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 157,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 364.96,
|
|
"Plan Rows": 4916,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.023,
|
|
"Actual Total Time": 0.902,
|
|
"Actual Rows": 4900,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000003'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 0,
|
|
"Shared Hit Blocks": 151,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.377,
|
|
"Triggers": [],
|
|
"Execution Time": 1.417
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 1.066 ms\ninitial connection time = 1.357 ms\ntps = 937.901539 (without initial connection time)\n",
|
|
"latency_avg_ms": 1.066,
|
|
"tps": 937.901539,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 1.116 ms\ninitial connection time = 1.556 ms\ntps = 896.041290 (without initial connection time)\n",
|
|
"latency_avg_ms": 1.116,
|
|
"tps": 896.04129,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 1.052 ms\ninitial connection time = 1.386 ms\ntps = 950.507096 (without initial connection time)\n",
|
|
"latency_avg_ms": 1.052,
|
|
"tps": 950.507096,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 1.417,
|
|
"median_latency_ms": 1.066,
|
|
"median_tps": 937.901539,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 1.904 ms\ninitial connection time = 2.061 ms\ntps = 2100.696906 (without initial connection time)\n",
|
|
"latency_avg_ms": 1.904,
|
|
"tps": 2100.696906,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 2.095 ms\ninitial connection time = 1.757 ms\ntps = 1909.180293 (without initial connection time)\n",
|
|
"latency_avg_ms": 2.095,
|
|
"tps": 1909.180293,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 1.827 ms\ninitial connection time = 2.291 ms\ntps = 2189.657154 (without initial connection time)\n",
|
|
"latency_avg_ms": 1.827,
|
|
"tps": 2189.657154,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 1.417,
|
|
"median_latency_ms": 1.904,
|
|
"median_tps": 2100.696906,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 497.63,
|
|
"Total Cost": 497.75,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.832,
|
|
"Actual Total Time": 0.836,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 157,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 497.63,
|
|
"Total Cost": 508.3,
|
|
"Plan Rows": 4268,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.831,
|
|
"Actual Total Time": 0.833,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 157,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 355.24,
|
|
"Plan Rows": 4268,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.659,
|
|
"Actual Total Time": 0.748,
|
|
"Actual Rows": 491,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000003'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00441'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 4409,
|
|
"Shared Hit Blocks": 151,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.255,
|
|
"Triggers": [],
|
|
"Execution Time": 0.873
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 497.63,
|
|
"Total Cost": 497.75,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.775,
|
|
"Actual Total Time": 0.78,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 157,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 497.63,
|
|
"Total Cost": 508.3,
|
|
"Plan Rows": 4268,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.774,
|
|
"Actual Total Time": 0.776,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 157,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 355.24,
|
|
"Plan Rows": 4268,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.604,
|
|
"Actual Total Time": 0.694,
|
|
"Actual Rows": 491,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000003'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00441'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 4409,
|
|
"Shared Hit Blocks": 151,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.281,
|
|
"Triggers": [],
|
|
"Execution Time": 0.816
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 497.63,
|
|
"Total Cost": 497.75,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.776,
|
|
"Actual Total Time": 0.78,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 157,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 497.63,
|
|
"Total Cost": 508.3,
|
|
"Plan Rows": 4268,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.775,
|
|
"Actual Total Time": 0.777,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "top-N heapsort",
|
|
"Sort Space Used": 50,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 157,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 355.24,
|
|
"Plan Rows": 4268,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.623,
|
|
"Actual Total Time": 0.698,
|
|
"Actual Rows": 491,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000003'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00441'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 4409,
|
|
"Shared Hit Blocks": 151,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.268,
|
|
"Triggers": [],
|
|
"Execution Time": 0.816
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.472 ms\ninitial connection time = 0.957 ms\ntps = 2119.856698 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.472,
|
|
"tps": 2119.856698,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.467 ms\ninitial connection time = 0.919 ms\ntps = 2140.915027 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.467,
|
|
"tps": 2140.915027,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.417 ms\ninitial connection time = 1.274 ms\ntps = 2397.564075 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.417,
|
|
"tps": 2397.564075,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.816,
|
|
"median_latency_ms": 0.467,
|
|
"median_tps": 2140.915027,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.683 ms\ninitial connection time = 1.796 ms\ntps = 5860.462390 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.683,
|
|
"tps": 5860.46239,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.999 ms\ninitial connection time = 1.635 ms\ntps = 4005.848539 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.999,
|
|
"tps": 4005.848539,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.510 ms\ninitial connection time = 1.755 ms\ntps = 7836.529985 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.51,
|
|
"tps": 7836.529985,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.816,
|
|
"median_latency_ms": 0.683,
|
|
"median_tps": 5860.46239,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.49,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.113,
|
|
"Actual Total Time": 0.117,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.64,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.112,
|
|
"Actual Total Time": 0.114,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 75,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 15.69,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.015,
|
|
"Actual Total Time": 0.055,
|
|
"Actual Rows": 100,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000004'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.281,
|
|
"Triggers": [],
|
|
"Execution Time": 0.16
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.49,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.082,
|
|
"Actual Total Time": 0.086,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.64,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.081,
|
|
"Actual Total Time": 0.083,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 75,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 15.69,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.015,
|
|
"Actual Total Time": 0.032,
|
|
"Actual Rows": 100,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000004'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.306,
|
|
"Triggers": [],
|
|
"Execution Time": 0.123
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.49,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.082,
|
|
"Actual Total Time": 0.087,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.64,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.082,
|
|
"Actual Total Time": 0.084,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 75,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 15.69,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.016,
|
|
"Actual Total Time": 0.036,
|
|
"Actual Rows": 100,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000004'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.341,
|
|
"Triggers": [],
|
|
"Execution Time": 0.13
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.120 ms\ninitial connection time = 1.245 ms\ntps = 8316.699933 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.12,
|
|
"tps": 8316.699933,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.117 ms\ninitial connection time = 1.276 ms\ntps = 8534.607835 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.117,
|
|
"tps": 8534.607835,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.121 ms\ninitial connection time = 1.209 ms\ntps = 8260.366760 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.121,
|
|
"tps": 8260.36676,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.13,
|
|
"median_latency_ms": 0.12,
|
|
"median_tps": 8316.699933,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.181 ms\ninitial connection time = 1.846 ms\ntps = 22107.997568 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.181,
|
|
"tps": 22107.997568,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.181 ms\ninitial connection time = 1.652 ms\ntps = 22044.640397 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.181,
|
|
"tps": 22044.640397,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.183 ms\ninitial connection time = 1.808 ms\ntps = 21801.929471 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.183,
|
|
"tps": 21801.929471,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.13,
|
|
"median_latency_ms": 0.181,
|
|
"median_tps": 22044.640397,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.49,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.043,
|
|
"Actual Total Time": 0.044,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.64,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.043,
|
|
"Actual Total Time": 0.043,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 30,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 15.69,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.022,
|
|
"Actual Total Time": 0.024,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000004'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00009'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 89,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.27,
|
|
"Triggers": [],
|
|
"Execution Time": 0.073
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.49,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.049,
|
|
"Actual Total Time": 0.05,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.64,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.048,
|
|
"Actual Total Time": 0.048,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 30,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 15.69,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.023,
|
|
"Actual Total Time": 0.025,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000004'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00009'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 89,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.29,
|
|
"Triggers": [],
|
|
"Execution Time": 0.084
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.49,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.05,
|
|
"Actual Total Time": 0.052,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Sort",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 19.36,
|
|
"Total Cost": 19.64,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.05,
|
|
"Actual Total Time": 0.05,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Sort Key": [
|
|
"created_at",
|
|
"id"
|
|
],
|
|
"Sort Method": "quicksort",
|
|
"Sort Space Used": 30,
|
|
"Sort Space Type": "Memory",
|
|
"Shared Hit Blocks": 12,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 15.69,
|
|
"Plan Rows": 110,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.024,
|
|
"Actual Total Time": 0.026,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "(chat_id = '00000000-0000-4000-8000-000000000004'::uuid)",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Filter": "(ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00009'::interval), '00000000-0000-0000-0000-000000000000'::uuid))",
|
|
"Rows Removed by Filter": 89,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 101,
|
|
"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.303,
|
|
"Triggers": [],
|
|
"Execution Time": 0.094
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.092 ms\ninitial connection time = 1.208 ms\ntps = 10840.108401 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.092,
|
|
"tps": 10840.108401,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.087 ms\ninitial connection time = 1.012 ms\ntps = 11550.011550 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.087,
|
|
"tps": 11550.01155,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.094 ms\ninitial connection time = 1.015 ms\ntps = 10590.976488 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.094,
|
|
"tps": 10590.976488,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.084,
|
|
"median_latency_ms": 0.092,
|
|
"median_tps": 10840.108401,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.113 ms\ninitial connection time = 1.652 ms\ntps = 35401.362952 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.113,
|
|
"tps": 35401.362952,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.119 ms\ninitial connection time = 1.979 ms\ntps = 33500.837521 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.119,
|
|
"tps": 33500.837521,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.115 ms\ninitial connection time = 1.632 ms\ntps = 34858.387800 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.115,
|
|
"tps": 34858.3878,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.084,
|
|
"median_latency_ms": 0.115,
|
|
"median_tps": 34858.3878,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"writes": [
|
|
{
|
|
"repeat": 1,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "ModifyTable",
|
|
"Operation": "Insert",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "write_probe",
|
|
"Alias": "write_probe",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 0,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 6.224,
|
|
"Actual Total Time": 6.225,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3821,
|
|
"Shared Read Blocks": 2,
|
|
"Shared Dirtied Blocks": 40,
|
|
"Shared Written Blocks": 40,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"WAL Records": 3011,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 418474,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Function Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Function Name": "generate_series",
|
|
"Alias": "i",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 88,
|
|
"Actual Startup Time": 0.355,
|
|
"Actual Total Time": 1.384,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 15,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.127,
|
|
"Triggers": [],
|
|
"Execution Time": 6.268
|
|
},
|
|
"transaction": {
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 1\nnumber of transactions actually processed: 1/1\nnumber of failed transactions: 0 (0.000%)\nlatency average = 5.155 ms\ninitial connection time = 1.173 ms\ntps = 193.986421 (without initial connection time)\n",
|
|
"latency_avg_ms": 5.155,
|
|
"tps": 193.986421,
|
|
"errors": 0
|
|
},
|
|
"table_bytes": 352256
|
|
},
|
|
{
|
|
"repeat": 2,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "ModifyTable",
|
|
"Operation": "Insert",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "write_probe",
|
|
"Alias": "write_probe",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 0,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 3.557,
|
|
"Actual Total Time": 3.557,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3819,
|
|
"Shared Read Blocks": 2,
|
|
"Shared Dirtied Blocks": 40,
|
|
"Shared Written Blocks": 40,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"WAL Records": 3011,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 418474,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Function Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Function Name": "generate_series",
|
|
"Alias": "i",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 88,
|
|
"Actual Startup Time": 0.141,
|
|
"Actual Total Time": 1.154,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 15,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.101,
|
|
"Triggers": [],
|
|
"Execution Time": 3.583
|
|
},
|
|
"transaction": {
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 1\nnumber of transactions actually processed: 1/1\nnumber of failed transactions: 0 (0.000%)\nlatency average = 8.679 ms\ninitial connection time = 1.174 ms\ntps = 115.220648 (without initial connection time)\n",
|
|
"latency_avg_ms": 8.679,
|
|
"tps": 115.220648,
|
|
"errors": 0
|
|
},
|
|
"table_bytes": 352256
|
|
},
|
|
{
|
|
"repeat": 3,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "ModifyTable",
|
|
"Operation": "Insert",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "write_probe",
|
|
"Alias": "write_probe",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 0,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 3.448,
|
|
"Actual Total Time": 3.448,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3819,
|
|
"Shared Read Blocks": 2,
|
|
"Shared Dirtied Blocks": 40,
|
|
"Shared Written Blocks": 40,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"WAL Records": 3011,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 418474,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Function Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Function Name": "generate_series",
|
|
"Alias": "i",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 88,
|
|
"Actual Startup Time": 0.161,
|
|
"Actual Total Time": 1.109,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 15,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.116,
|
|
"Triggers": [],
|
|
"Execution Time": 3.483
|
|
},
|
|
"transaction": {
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 1\nnumber of transactions actually processed: 1/1\nnumber of failed transactions: 0 (0.000%)\nlatency average = 11.787 ms\ninitial connection time = 1.242 ms\ntps = 84.839230 (without initial connection time)\n",
|
|
"latency_avg_ms": 11.787,
|
|
"tps": 84.83923,
|
|
"errors": 0
|
|
},
|
|
"table_bytes": 352256
|
|
}
|
|
],
|
|
"resources": {
|
|
"measurement_seconds": 54.458,
|
|
"cpu_percent": 129.429,
|
|
"memory_before_bytes": 360783872,
|
|
"memory_after_bytes": 346648576,
|
|
"note": "cgroup memory includes shared buffers/page cache, not API RSS; CPU window includes setup and SQL trials"
|
|
}
|
|
},
|
|
{
|
|
"name": "composite",
|
|
"index": "(chat_id,created_at,id)",
|
|
"index_bytes": 5914624,
|
|
"reads": [
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 7.83,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.027,
|
|
"Actual Total Time": 0.04,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 11541.96,
|
|
"Plan Rows": 79485,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.026,
|
|
"Actual Total Time": 0.037,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 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.407,
|
|
"Triggers": [],
|
|
"Execution Time": 0.081
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 7.83,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.014,
|
|
"Actual Total Time": 0.025,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 11541.96,
|
|
"Plan Rows": 79485,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.013,
|
|
"Actual Total Time": 0.023,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.336,
|
|
"Triggers": [],
|
|
"Execution Time": 0.053
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 7.83,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.014,
|
|
"Actual Total Time": 0.026,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 11541.96,
|
|
"Plan Rows": 79485,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.014,
|
|
"Actual Total Time": 0.024,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.324,
|
|
"Triggers": [],
|
|
"Execution Time": 0.054
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.089 ms\ninitial connection time = 1.137 ms\ntps = 11188.185276 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.089,
|
|
"tps": 11188.185276,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.089 ms\ninitial connection time = 1.395 ms\ntps = 11294.330246 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.089,
|
|
"tps": 11294.330246,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.091 ms\ninitial connection time = 1.179 ms\ntps = 10942.116205 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.091,
|
|
"tps": 10942.116205,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.054,
|
|
"median_latency_ms": 0.089,
|
|
"median_tps": 11188.185276,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.150 ms\ninitial connection time = 1.858 ms\ntps = 26650.676261 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.15,
|
|
"tps": 26650.676261,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.159 ms\ninitial connection time = 1.658 ms\ntps = 25128.785023 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.159,
|
|
"tps": 25128.785023,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.151 ms\ninitial connection time = 1.791 ms\ntps = 26470.782873 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.151,
|
|
"tps": 26470.782873,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.054,
|
|
"median_latency_ms": 0.151,
|
|
"median_tps": 26470.782873,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 47.2,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.039,
|
|
"Actual Total Time": 0.052,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 5646.66,
|
|
"Plan Rows": 6155,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.039,
|
|
"Actual Total Time": 0.049,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.072'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"Shared Read Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.298,
|
|
"Triggers": [],
|
|
"Execution Time": 0.08
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 47.2,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.021,
|
|
"Actual Total Time": 0.031,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 5646.66,
|
|
"Plan Rows": 6155,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.02,
|
|
"Actual Total Time": 0.029,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.072'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.312,
|
|
"Triggers": [],
|
|
"Execution Time": 0.057
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 47.2,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.022,
|
|
"Actual Total Time": 0.034,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 5646.66,
|
|
"Plan Rows": 6155,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.021,
|
|
"Actual Total Time": 0.032,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.072'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.281,
|
|
"Triggers": [],
|
|
"Execution Time": 0.06
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.091 ms\ninitial connection time = 1.064 ms\ntps = 10990.218705 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.091,
|
|
"tps": 10990.218705,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.090 ms\ninitial connection time = 1.377 ms\ntps = 11144.544745 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.09,
|
|
"tps": 11144.544745,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.088 ms\ninitial connection time = 1.066 ms\ntps = 11380.448390 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.088,
|
|
"tps": 11380.44839,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.06,
|
|
"median_latency_ms": 0.09,
|
|
"median_tps": 11144.544745,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.155 ms\ninitial connection time = 1.570 ms\ntps = 25769.875016 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.155,
|
|
"tps": 25769.875016,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.158 ms\ninitial connection time = 1.834 ms\ntps = 25391.988828 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.158,
|
|
"tps": 25391.988828,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.171 ms\ninitial connection time = 1.751 ms\ntps = 23421.946364 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.171,
|
|
"tps": 23421.946364,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.06,
|
|
"median_latency_ms": 0.158,
|
|
"median_tps": 25391.988828,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 21.61,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.044,
|
|
"Actual Total Time": 0.055,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 5,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 6390.04,
|
|
"Plan Rows": 15382,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.042,
|
|
"Actual Total Time": 0.052,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 5,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.312,
|
|
"Triggers": [],
|
|
"Execution Time": 0.081
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 21.61,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.019,
|
|
"Actual Total Time": 0.03,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 6390.04,
|
|
"Plan Rows": 15382,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.019,
|
|
"Actual Total Time": 0.027,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.302,
|
|
"Triggers": [],
|
|
"Execution Time": 0.063
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 21.61,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.024,
|
|
"Actual Total Time": 0.036,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 6390.04,
|
|
"Plan Rows": 15382,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.023,
|
|
"Actual Total Time": 0.033,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.346,
|
|
"Triggers": [],
|
|
"Execution Time": 0.064
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.090 ms\ninitial connection time = 1.206 ms\ntps = 11156.978690 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.09,
|
|
"tps": 11156.97869,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.093 ms\ninitial connection time = 1.271 ms\ntps = 10770.059235 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.093,
|
|
"tps": 10770.059235,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.089 ms\ninitial connection time = 1.169 ms\ntps = 11227.124733 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.089,
|
|
"tps": 11227.124733,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.064,
|
|
"median_latency_ms": 0.09,
|
|
"median_tps": 11156.97869,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.153 ms\ninitial connection time = 1.821 ms\ntps = 26079.019429 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.153,
|
|
"tps": 26079.019429,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.163 ms\ninitial connection time = 1.720 ms\ntps = 24545.900835 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.163,
|
|
"tps": 24545.900835,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.158 ms\ninitial connection time = 1.829 ms\ntps = 25258.903764 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.158,
|
|
"tps": 25258.903764,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.064,
|
|
"median_latency_ms": 0.158,
|
|
"median_tps": 25258.903764,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 29.86,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.049,
|
|
"Actual Total Time": 0.069,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 5983.12,
|
|
"Plan Rows": 10363,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.048,
|
|
"Actual Total Time": 0.066,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.0135'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.321,
|
|
"Triggers": [],
|
|
"Execution Time": 0.096
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 29.86,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.016,
|
|
"Actual Total Time": 0.033,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 7,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 5983.12,
|
|
"Plan Rows": 10363,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.015,
|
|
"Actual Total Time": 0.03,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.0135'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 7,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.321,
|
|
"Triggers": [],
|
|
"Execution Time": 0.059
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 29.86,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.019,
|
|
"Actual Total Time": 0.04,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 7,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 5983.12,
|
|
"Plan Rows": 10363,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.019,
|
|
"Actual Total Time": 0.037,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.0135'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 7,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.388,
|
|
"Triggers": [],
|
|
"Execution Time": 0.07
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.093 ms\ninitial connection time = 1.317 ms\ntps = 10697.475396 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.093,
|
|
"tps": 10697.475396,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.095 ms\ninitial connection time = 1.332 ms\ntps = 10493.179433 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.095,
|
|
"tps": 10493.179433,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.095 ms\ninitial connection time = 1.396 ms\ntps = 10549.636038 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.095,
|
|
"tps": 10549.636038,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.07,
|
|
"median_latency_ms": 0.095,
|
|
"median_tps": 10549.636038,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.179 ms\ninitial connection time = 1.867 ms\ntps = 22355.110937 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.179,
|
|
"tps": 22355.110937,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.164 ms\ninitial connection time = 2.036 ms\ntps = 24385.783088 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.164,
|
|
"tps": 24385.783088,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.161 ms\ninitial connection time = 1.868 ms\ntps = 24823.135162 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.161,
|
|
"tps": 24823.135162,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.07,
|
|
"median_latency_ms": 0.164,
|
|
"median_tps": 24385.783088,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 52.76,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.042,
|
|
"Actual Total Time": 0.051,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 5,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 5147.92,
|
|
"Plan Rows": 5016,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.041,
|
|
"Actual Total Time": 0.049,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 5,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.347,
|
|
"Triggers": [],
|
|
"Execution Time": 0.079
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 52.76,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.03,
|
|
"Actual Total Time": 0.039,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 5147.92,
|
|
"Plan Rows": 5016,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.029,
|
|
"Actual Total Time": 0.037,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.368,
|
|
"Triggers": [],
|
|
"Execution Time": 0.086
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 52.76,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.02,
|
|
"Actual Total Time": 0.032,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 5147.92,
|
|
"Plan Rows": 5016,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.02,
|
|
"Actual Total Time": 0.029,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.372,
|
|
"Triggers": [],
|
|
"Execution Time": 0.062
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.093 ms\ninitial connection time = 0.939 ms\ntps = 10775.862069 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.093,
|
|
"tps": 10775.862069,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.088 ms\ninitial connection time = 1.090 ms\ntps = 11424.654404 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.088,
|
|
"tps": 11424.654404,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.090 ms\ninitial connection time = 1.063 ms\ntps = 11108.642524 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.09,
|
|
"tps": 11108.642524,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.079,
|
|
"median_latency_ms": 0.09,
|
|
"median_tps": 11108.642524,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.160 ms\ninitial connection time = 2.093 ms\ntps = 25023.459493 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.16,
|
|
"tps": 25023.459493,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.163 ms\ninitial connection time = 1.981 ms\ntps = 24582.104228 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.163,
|
|
"tps": 24582.104228,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.164 ms\ninitial connection time = 2.621 ms\ntps = 24327.940640 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.164,
|
|
"tps": 24327.94064,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.079,
|
|
"median_latency_ms": 0.163,
|
|
"median_tps": 24582.104228,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 55.93,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.043,
|
|
"Actual Total Time": 0.068,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 5,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 4725.54,
|
|
"Plan Rows": 4341,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.042,
|
|
"Actual Total Time": 0.064,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00441'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 5,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.37,
|
|
"Triggers": [],
|
|
"Execution Time": 0.095
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 55.93,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.022,
|
|
"Actual Total Time": 0.036,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 4725.54,
|
|
"Plan Rows": 4341,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.021,
|
|
"Actual Total Time": 0.032,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00441'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.351,
|
|
"Triggers": [],
|
|
"Execution Time": 0.069
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 55.93,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.025,
|
|
"Actual Total Time": 0.039,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 4725.54,
|
|
"Plan Rows": 4341,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.024,
|
|
"Actual Total Time": 0.037,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00441'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.328,
|
|
"Triggers": [],
|
|
"Execution Time": 0.067
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.096 ms\ninitial connection time = 1.255 ms\ntps = 10444.955087 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.096,
|
|
"tps": 10444.955087,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.089 ms\ninitial connection time = 1.140 ms\ntps = 11223.344557 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.089,
|
|
"tps": 11223.344557,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.092 ms\ninitial connection time = 1.174 ms\ntps = 10917.030568 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.092,
|
|
"tps": 10917.030568,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.069,
|
|
"median_latency_ms": 0.092,
|
|
"median_tps": 10917.030568,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.165 ms\ninitial connection time = 1.928 ms\ntps = 24188.184072 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.165,
|
|
"tps": 24188.184072,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.166 ms\ninitial connection time = 2.037 ms\ntps = 24087.679152 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.166,
|
|
"tps": 24087.679152,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.161 ms\ninitial connection time = 2.101 ms\ntps = 24775.472282 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.161,
|
|
"tps": 24775.472282,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.069,
|
|
"median_latency_ms": 0.165,
|
|
"median_tps": 24188.184072,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 94.4,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.033,
|
|
"Actual Total Time": 0.046,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 5,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 197.6,
|
|
"Plan Rows": 107,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.032,
|
|
"Actual Total Time": 0.043,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 5,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.283,
|
|
"Triggers": [],
|
|
"Execution Time": 0.076
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 94.4,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.022,
|
|
"Actual Total Time": 0.034,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 197.6,
|
|
"Plan Rows": 107,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.021,
|
|
"Actual Total Time": 0.031,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.287,
|
|
"Triggers": [],
|
|
"Execution Time": 0.062
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 94.4,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.017,
|
|
"Actual Total Time": 0.027,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 197.6,
|
|
"Plan Rows": 107,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.017,
|
|
"Actual Total Time": 0.024,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.306,
|
|
"Triggers": [],
|
|
"Execution Time": 0.053
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.088 ms\ninitial connection time = 1.320 ms\ntps = 11335.298118 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.088,
|
|
"tps": 11335.298118,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.095 ms\ninitial connection time = 1.246 ms\ntps = 10509.721492 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.095,
|
|
"tps": 10509.721492,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.091 ms\ninitial connection time = 0.939 ms\ntps = 11027.790031 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.091,
|
|
"tps": 11027.790031,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.062,
|
|
"median_latency_ms": 0.091,
|
|
"median_tps": 11027.790031,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.162 ms\ninitial connection time = 1.886 ms\ntps = 24712.714692 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.162,
|
|
"tps": 24712.714692,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.151 ms\ninitial connection time = 1.835 ms\ntps = 26556.898154 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.151,
|
|
"tps": 26556.898154,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.155 ms\ninitial connection time = 1.772 ms\ntps = 25876.568767 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.155,
|
|
"tps": 25876.568767,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.062,
|
|
"median_latency_ms": 0.155,
|
|
"median_tps": 25876.568767,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 94.43,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.041,
|
|
"Actual Total Time": 0.043,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 195.82,
|
|
"Plan Rows": 106,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.04,
|
|
"Actual Total Time": 0.042,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00009'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 3,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.31,
|
|
"Triggers": [],
|
|
"Execution Time": 0.071
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 94.43,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.018,
|
|
"Actual Total Time": 0.021,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 195.82,
|
|
"Plan Rows": 106,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.017,
|
|
"Actual Total Time": 0.02,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00009'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.346,
|
|
"Triggers": [],
|
|
"Execution Time": 0.051
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 94.43,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.016,
|
|
"Actual Total Time": 0.018,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 195.82,
|
|
"Plan Rows": 106,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.015,
|
|
"Actual Total Time": 0.017,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00009'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 113,
|
|
"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.378,
|
|
"Triggers": [],
|
|
"Execution Time": 0.043
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.077 ms\ninitial connection time = 1.254 ms\ntps = 12995.451592 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.077,
|
|
"tps": 12995.451592,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.081 ms\ninitial connection time = 1.450 ms\ntps = 12315.270936 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.081,
|
|
"tps": 12315.270936,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.081 ms\ninitial connection time = 1.014 ms\ntps = 12289.541600 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.081,
|
|
"tps": 12289.5416,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.051,
|
|
"median_latency_ms": 0.081,
|
|
"median_tps": 12315.270936,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.104 ms\ninitial connection time = 1.559 ms\ntps = 38465.237042 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.104,
|
|
"tps": 38465.237042,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.102 ms\ninitial connection time = 1.975 ms\ntps = 39300.451955 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.102,
|
|
"tps": 39300.451955,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.106 ms\ninitial connection time = 1.770 ms\ntps = 37792.894936 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.106,
|
|
"tps": 37792.894936,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.051,
|
|
"median_latency_ms": 0.104,
|
|
"median_tps": 38465.237042,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"writes": [
|
|
{
|
|
"repeat": 1,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "ModifyTable",
|
|
"Operation": "Insert",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "write_probe",
|
|
"Alias": "write_probe",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 0,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 3.203,
|
|
"Actual Total Time": 3.203,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4680,
|
|
"Shared Read Blocks": 2,
|
|
"Shared Dirtied Blocks": 48,
|
|
"Shared Written Blocks": 48,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"WAL Records": 3013,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 448576,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Function Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Function Name": "generate_series",
|
|
"Alias": "i",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 88,
|
|
"Actual Startup Time": 0.17,
|
|
"Actual Total Time": 1.091,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 15,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.127,
|
|
"Triggers": [],
|
|
"Execution Time": 3.235
|
|
},
|
|
"transaction": {
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 1\nnumber of transactions actually processed: 1/1\nnumber of failed transactions: 0 (0.000%)\nlatency average = 5.672 ms\ninitial connection time = 1.309 ms\ntps = 176.304654 (without initial connection time)\n",
|
|
"latency_avg_ms": 5.672,
|
|
"tps": 176.304654,
|
|
"errors": 0
|
|
},
|
|
"table_bytes": 417792
|
|
},
|
|
{
|
|
"repeat": 2,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "ModifyTable",
|
|
"Operation": "Insert",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "write_probe",
|
|
"Alias": "write_probe",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 0,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 3.162,
|
|
"Actual Total Time": 3.162,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4681,
|
|
"Shared Read Blocks": 2,
|
|
"Shared Dirtied Blocks": 48,
|
|
"Shared Written Blocks": 48,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"WAL Records": 3013,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 448576,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Function Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Function Name": "generate_series",
|
|
"Alias": "i",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 88,
|
|
"Actual Startup Time": 0.169,
|
|
"Actual Total Time": 1.071,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 15,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.105,
|
|
"Triggers": [],
|
|
"Execution Time": 3.19
|
|
},
|
|
"transaction": {
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 1\nnumber of transactions actually processed: 1/1\nnumber of failed transactions: 0 (0.000%)\nlatency average = 6.118 ms\ninitial connection time = 1.299 ms\ntps = 163.452109 (without initial connection time)\n",
|
|
"latency_avg_ms": 6.118,
|
|
"tps": 163.452109,
|
|
"errors": 0
|
|
},
|
|
"table_bytes": 417792
|
|
},
|
|
{
|
|
"repeat": 3,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "ModifyTable",
|
|
"Operation": "Insert",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "write_probe",
|
|
"Alias": "write_probe",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 0,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 3.159,
|
|
"Actual Total Time": 3.159,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4681,
|
|
"Shared Read Blocks": 2,
|
|
"Shared Dirtied Blocks": 48,
|
|
"Shared Written Blocks": 48,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"WAL Records": 3013,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 448576,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Function Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Function Name": "generate_series",
|
|
"Alias": "i",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 88,
|
|
"Actual Startup Time": 0.166,
|
|
"Actual Total Time": 1.094,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 15,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.105,
|
|
"Triggers": [],
|
|
"Execution Time": 3.193
|
|
},
|
|
"transaction": {
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 1\nnumber of transactions actually processed: 1/1\nnumber of failed transactions: 0 (0.000%)\nlatency average = 5.915 ms\ninitial connection time = 1.189 ms\ntps = 169.061708 (without initial connection time)\n",
|
|
"latency_avg_ms": 5.915,
|
|
"tps": 169.061708,
|
|
"errors": 0
|
|
},
|
|
"table_bytes": 417792
|
|
}
|
|
],
|
|
"resources": {
|
|
"measurement_seconds": 18.197,
|
|
"cpu_percent": 16.827,
|
|
"memory_before_bytes": 345976832,
|
|
"memory_after_bytes": 351805440,
|
|
"note": "cgroup memory includes shared buffers/page cache, not API RSS; CPU window includes setup and SQL trials"
|
|
}
|
|
},
|
|
{
|
|
"name": "covering",
|
|
"index": "(chat_id,created_at,id) INCLUDE(sender_id,text)",
|
|
"index_bytes": 25001984,
|
|
"reads": [
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.43,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.043,
|
|
"Actual Total Time": 0.058,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 12562.84,
|
|
"Plan Rows": 79955,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.042,
|
|
"Actual Total Time": 0.054,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 0,
|
|
"Shared Hit Blocks": 1,
|
|
"Shared Read Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 120,
|
|
"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.395,
|
|
"Triggers": [],
|
|
"Execution Time": 0.105
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.43,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.035,
|
|
"Actual Total Time": 0.048,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 12562.84,
|
|
"Plan Rows": 79955,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.034,
|
|
"Actual Total Time": 0.045,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.364,
|
|
"Triggers": [],
|
|
"Execution Time": 0.077
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.43,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.022,
|
|
"Actual Total Time": 0.039,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 12562.84,
|
|
"Plan Rows": 79955,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.021,
|
|
"Actual Total Time": 0.036,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.441,
|
|
"Triggers": [],
|
|
"Execution Time": 0.077
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.098 ms\ninitial connection time = 1.113 ms\ntps = 10158.472166 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.098,
|
|
"tps": 10158.472166,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.094 ms\ninitial connection time = 1.300 ms\ntps = 10614.584439 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.094,
|
|
"tps": 10614.584439,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.079 ms\ninitial connection time = 1.334 ms\ntps = 12605.571663 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.079,
|
|
"tps": 12605.571663,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.077,
|
|
"median_latency_ms": 0.094,
|
|
"median_tps": 10614.584439,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.170 ms\ninitial connection time = 1.984 ms\ntps = 23528.027763 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.17,
|
|
"tps": 23528.027763,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.159 ms\ninitial connection time = 1.784 ms\ntps = 25160.397534 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.159,
|
|
"tps": 25160.397534,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.163 ms\ninitial connection time = 1.774 ms\ntps = 24470.818549 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.163,
|
|
"tps": 24470.818549,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.077,
|
|
"median_latency_ms": 0.163,
|
|
"median_tps": 24470.818549,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.43,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.055,
|
|
"Actual Total Time": 0.087,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2,
|
|
"Shared Read Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 988.47,
|
|
"Plan Rows": 6287,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.054,
|
|
"Actual Total Time": 0.084,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.072'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 0,
|
|
"Shared Hit Blocks": 2,
|
|
"Shared Read Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.312,
|
|
"Triggers": [],
|
|
"Execution Time": 0.114
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.43,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.02,
|
|
"Actual Total Time": 0.033,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 988.47,
|
|
"Plan Rows": 6287,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.02,
|
|
"Actual Total Time": 0.031,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.072'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.316,
|
|
"Triggers": [],
|
|
"Execution Time": 0.068
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.43,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.025,
|
|
"Actual Total Time": 0.041,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 988.47,
|
|
"Plan Rows": 6287,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.024,
|
|
"Actual Total Time": 0.038,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000001'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.072'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.384,
|
|
"Triggers": [],
|
|
"Execution Time": 0.073
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.096 ms\ninitial connection time = 0.991 ms\ntps = 10378.827193 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.096,
|
|
"tps": 10378.827193,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.098 ms\ninitial connection time = 0.973 ms\ntps = 10225.994478 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.098,
|
|
"tps": 10225.994478,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.088 ms\ninitial connection time = 1.238 ms\ntps = 11336.583154 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.088,
|
|
"tps": 11336.583154,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.073,
|
|
"median_latency_ms": 0.096,
|
|
"median_tps": 10378.827193,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 80000,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.165 ms\ninitial connection time = 1.737 ms\ntps = 24227.740763 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.165,
|
|
"tps": 24227.740763,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.165 ms\ninitial connection time = 1.671 ms\ntps = 24205.748865 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.165,
|
|
"tps": 24205.748865,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.157 ms\ninitial connection time = 1.832 ms\ntps = 25541.153183 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.157,
|
|
"tps": 25541.153183,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.073,
|
|
"median_latency_ms": 0.165,
|
|
"median_tps": 24227.740763,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.44,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.061,
|
|
"Actual Total Time": 0.075,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 2341.29,
|
|
"Plan Rows": 14882,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.06,
|
|
"Actual Total Time": 0.072,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 0,
|
|
"Shared Hit Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.325,
|
|
"Triggers": [],
|
|
"Execution Time": 0.104
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.44,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.028,
|
|
"Actual Total Time": 0.038,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 2341.29,
|
|
"Plan Rows": 14882,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.027,
|
|
"Actual Total Time": 0.034,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.313,
|
|
"Triggers": [],
|
|
"Execution Time": 0.068
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.44,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.03,
|
|
"Actual Total Time": 0.038,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 2341.29,
|
|
"Plan Rows": 14882,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.029,
|
|
"Actual Total Time": 0.035,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.448,
|
|
"Triggers": [],
|
|
"Execution Time": 0.064
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.096 ms\ninitial connection time = 1.252 ms\ntps = 10447.137484 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.096,
|
|
"tps": 10447.137484,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.091 ms\ninitial connection time = 1.000 ms\ntps = 10969.723563 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.091,
|
|
"tps": 10969.723563,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.092 ms\ninitial connection time = 1.209 ms\ntps = 10831.889081 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.092,
|
|
"tps": 10831.889081,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.068,
|
|
"median_latency_ms": 0.092,
|
|
"median_tps": 10831.889081,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.160 ms\ninitial connection time = 2.082 ms\ntps = 25057.946501 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.16,
|
|
"tps": 25057.946501,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.183 ms\ninitial connection time = 1.894 ms\ntps = 21889.022655 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.183,
|
|
"tps": 21889.022655,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.264 ms\ninitial connection time = 5.867 ms\ntps = 15168.177164 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.264,
|
|
"tps": 15168.177164,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.068,
|
|
"median_latency_ms": 0.183,
|
|
"median_tps": 21889.022655,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.44,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.071,
|
|
"Actual Total Time": 0.084,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 1595.39,
|
|
"Plan Rows": 10142,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.07,
|
|
"Actual Total Time": 0.081,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.0135'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 0,
|
|
"Shared Hit Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.305,
|
|
"Triggers": [],
|
|
"Execution Time": 0.113
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.44,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.021,
|
|
"Actual Total Time": 0.031,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 1595.39,
|
|
"Plan Rows": 10142,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.02,
|
|
"Actual Total Time": 0.028,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.0135'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.377,
|
|
"Triggers": [],
|
|
"Execution Time": 0.056
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.44,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.023,
|
|
"Actual Total Time": 0.034,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 1595.39,
|
|
"Plan Rows": 10142,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.023,
|
|
"Actual Total Time": 0.032,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000002'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.0135'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.317,
|
|
"Triggers": [],
|
|
"Execution Time": 0.064
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.170 ms\ninitial connection time = 1.134 ms\ntps = 5886.854654 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.17,
|
|
"tps": 5886.854654,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.104 ms\ninitial connection time = 1.236 ms\ntps = 9654.373431 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.104,
|
|
"tps": 9654.373431,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.121 ms\ninitial connection time = 2.360 ms\ntps = 8241.984670 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.121,
|
|
"tps": 8241.98467,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.064,
|
|
"median_latency_ms": 0.121,
|
|
"median_tps": 8241.98467,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 15000,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.281 ms\ninitial connection time = 12.186 ms\ntps = 14243.999715 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.281,
|
|
"tps": 14243.999715,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.168 ms\ninitial connection time = 2.012 ms\ntps = 23762.846789 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.168,
|
|
"tps": 23762.846789,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.235 ms\ninitial connection time = 2.181 ms\ntps = 16992.353441 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.235,
|
|
"tps": 16992.353441,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.064,
|
|
"median_latency_ms": 0.235,
|
|
"median_tps": 16992.353441,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.46,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.062,
|
|
"Actual Total Time": 0.1,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2,
|
|
"Shared Read Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 797.38,
|
|
"Plan Rows": 5056,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.061,
|
|
"Actual Total Time": 0.097,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 0,
|
|
"Shared Hit Blocks": 2,
|
|
"Shared Read Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.556,
|
|
"Triggers": [],
|
|
"Execution Time": 0.138
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.46,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.024,
|
|
"Actual Total Time": 0.042,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 797.38,
|
|
"Plan Rows": 5056,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.023,
|
|
"Actual Total Time": 0.039,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.409,
|
|
"Triggers": [],
|
|
"Execution Time": 0.078
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.46,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.02,
|
|
"Actual Total Time": 0.035,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 797.38,
|
|
"Plan Rows": 5056,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.019,
|
|
"Actual Total Time": 0.032,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.336,
|
|
"Triggers": [],
|
|
"Execution Time": 0.061
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.088 ms\ninitial connection time = 1.117 ms\ntps = 11319.900385 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.088,
|
|
"tps": 11319.900385,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.098 ms\ninitial connection time = 1.029 ms\ntps = 10254.306809 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.098,
|
|
"tps": 10254.306809,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.095 ms\ninitial connection time = 1.257 ms\ntps = 10571.942066 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.095,
|
|
"tps": 10571.942066,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.078,
|
|
"median_latency_ms": 0.095,
|
|
"median_tps": 10571.942066,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.175 ms\ninitial connection time = 1.790 ms\ntps = 22857.142857 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.175,
|
|
"tps": 22857.142857,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.163 ms\ninitial connection time = 1.948 ms\ntps = 24563.989192 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.163,
|
|
"tps": 24563.989192,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.153 ms\ninitial connection time = 2.982 ms\ntps = 26085.822356 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.153,
|
|
"tps": 26085.822356,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.078,
|
|
"median_latency_ms": 0.163,
|
|
"median_tps": 24563.989192,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.45,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.093,
|
|
"Actual Total Time": 0.106,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 689.65,
|
|
"Plan Rows": 4378,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.092,
|
|
"Actual Total Time": 0.104,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00441'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 0,
|
|
"Shared Hit Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.391,
|
|
"Triggers": [],
|
|
"Execution Time": 0.605
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.45,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.028,
|
|
"Actual Total Time": 0.038,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 689.65,
|
|
"Plan Rows": 4378,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.028,
|
|
"Actual Total Time": 0.036,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00441'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.316,
|
|
"Triggers": [],
|
|
"Execution Time": 0.065
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.45,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.048,
|
|
"Actual Total Time": 0.057,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 689.65,
|
|
"Plan Rows": 4378,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.047,
|
|
"Actual Total Time": 0.055,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000003'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00441'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.337,
|
|
"Triggers": [],
|
|
"Execution Time": 0.101
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.091 ms\ninitial connection time = 1.326 ms\ntps = 10948.105978 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.091,
|
|
"tps": 10948.105978,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.106 ms\ninitial connection time = 1.279 ms\ntps = 9466.111321 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.106,
|
|
"tps": 9466.111321,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.091 ms\ninitial connection time = 1.218 ms\ntps = 10958.904110 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.091,
|
|
"tps": 10958.90411,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.101,
|
|
"median_latency_ms": 0.091,
|
|
"median_tps": 10948.105978,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 4900,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.161 ms\ninitial connection time = 1.878 ms\ntps = 24787.754849 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.161,
|
|
"tps": 24787.754849,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.230 ms\ninitial connection time = 4.650 ms\ntps = 17400.382808 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.23,
|
|
"tps": 17400.382808,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.169 ms\ninitial connection time = 2.123 ms\ntps = 23660.238968 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.169,
|
|
"tps": 23660.238968,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.101,
|
|
"median_latency_ms": 0.169,
|
|
"median_tps": 23660.238968,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "first",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.51,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.072,
|
|
"Actual Total Time": 0.094,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3,
|
|
"Shared Read Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 15.82,
|
|
"Plan Rows": 97,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.071,
|
|
"Actual Total Time": 0.09,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 0,
|
|
"Shared Hit Blocks": 3,
|
|
"Shared Read Blocks": 2,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.352,
|
|
"Triggers": [],
|
|
"Execution Time": 0.132
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.51,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.036,
|
|
"Actual Total Time": 0.049,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 15.82,
|
|
"Plan Rows": 97,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.035,
|
|
"Actual Total Time": 0.046,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.324,
|
|
"Triggers": [],
|
|
"Execution Time": 0.084
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.51,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.029,
|
|
"Actual Total Time": 0.042,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 15.82,
|
|
"Plan Rows": 97,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.029,
|
|
"Actual Total Time": 0.039,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.375,
|
|
"Triggers": [],
|
|
"Execution Time": 0.085
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.094 ms\ninitial connection time = 1.433 ms\ntps = 10632.642212 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.094,
|
|
"tps": 10632.642212,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.086 ms\ninitial connection time = 1.233 ms\ntps = 11584.800741 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.086,
|
|
"tps": 11584.800741,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.092 ms\ninitial connection time = 1.338 ms\ntps = 10874.293171 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.092,
|
|
"tps": 10874.293171,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.085,
|
|
"median_latency_ms": 0.092,
|
|
"median_tps": 10874.293171,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "first",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.166 ms\ninitial connection time = 1.688 ms\ntps = 24061.597690 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.166,
|
|
"tps": 24061.59769,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.169 ms\ninitial connection time = 1.770 ms\ntps = 23665.838362 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.169,
|
|
"tps": 23665.838362,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.152 ms\ninitial connection time = 1.640 ms\ntps = 26239.832065 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.152,
|
|
"tps": 26239.832065,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.085,
|
|
"median_latency_ms": 0.166,
|
|
"median_tps": 24061.59769,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "deep",
|
|
"clients": 1,
|
|
"plans": [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.58,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.055,
|
|
"Actual Total Time": 0.057,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 15.78,
|
|
"Plan Rows": 96,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.054,
|
|
"Actual Total Time": 0.056,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00009'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 0,
|
|
"Shared Hit Blocks": 3,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.322,
|
|
"Triggers": [],
|
|
"Execution Time": 0.085
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.58,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.024,
|
|
"Actual Total Time": 0.026,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 15.78,
|
|
"Plan Rows": 96,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.023,
|
|
"Actual Total Time": 0.025,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00009'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.342,
|
|
"Triggers": [],
|
|
"Execution Time": 0.058
|
|
},
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 8.58,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.024,
|
|
"Actual Total Time": 0.026,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Only Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "experiment_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.42,
|
|
"Total Cost": 15.78,
|
|
"Plan Rows": 96,
|
|
"Plan Width": 266,
|
|
"Actual Startup Time": 0.023,
|
|
"Actual Total Time": 0.025,
|
|
"Actual Rows": 11,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '00000000-0000-4000-8000-000000000004'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00.00009'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Heap Fetches": 0,
|
|
"Shared Hit Blocks": 4,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 119,
|
|
"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.355,
|
|
"Triggers": [],
|
|
"Execution Time": 0.053
|
|
}
|
|
],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.082 ms\ninitial connection time = 1.096 ms\ntps = 12257.906350 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.082,
|
|
"tps": 12257.90635,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.085 ms\ninitial connection time = 1.145 ms\ntps = 11830.119484 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.085,
|
|
"tps": 11830.119484,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 100/100\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.085 ms\ninitial connection time = 1.250 ms\ntps = 11717.834544 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.085,
|
|
"tps": 11717.834544,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.058,
|
|
"median_latency_ms": 0.085,
|
|
"median_tps": 11830.119484,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"chat_messages": 100,
|
|
"position": "deep",
|
|
"clients": 4,
|
|
"plans": [],
|
|
"runs": [
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.110 ms\ninitial connection time = 1.863 ms\ntps = 36426.554959 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.11,
|
|
"tps": 36426.554959,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.107 ms\ninitial connection time = 1.774 ms\ntps = 37334.328915 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.107,
|
|
"tps": 37334.328915,
|
|
"errors": 0
|
|
},
|
|
{
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 4\nnumber of threads: 4\nmaximum number of tries: 1\nnumber of transactions per client: 100\nnumber of transactions actually processed: 400/400\nnumber of failed transactions: 0 (0.000%)\nlatency average = 0.104 ms\ninitial connection time = 1.768 ms\ntps = 38339.883063 (without initial connection time)\n",
|
|
"latency_avg_ms": 0.104,
|
|
"tps": 38339.883063,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"median_execution_ms": 0.058,
|
|
"median_latency_ms": 0.107,
|
|
"median_tps": 37334.328915,
|
|
"errors": 0
|
|
}
|
|
],
|
|
"writes": [
|
|
{
|
|
"repeat": 1,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "ModifyTable",
|
|
"Operation": "Insert",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "write_probe",
|
|
"Alias": "write_probe",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 0,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 4.464,
|
|
"Actual Total Time": 4.464,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4828,
|
|
"Shared Read Blocks": 2,
|
|
"Shared Dirtied Blocks": 71,
|
|
"Shared Written Blocks": 71,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"WAL Records": 3036,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 639392,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Function Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Function Name": "generate_series",
|
|
"Alias": "i",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 88,
|
|
"Actual Startup Time": 0.27,
|
|
"Actual Total Time": 1.371,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 15,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.133,
|
|
"Triggers": [],
|
|
"Execution Time": 4.5
|
|
},
|
|
"transaction": {
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 1\nnumber of transactions actually processed: 1/1\nnumber of failed transactions: 0 (0.000%)\nlatency average = 6.416 ms\ninitial connection time = 1.421 ms\ntps = 155.860349 (without initial connection time)\n",
|
|
"latency_avg_ms": 6.416,
|
|
"tps": 155.860349,
|
|
"errors": 0
|
|
},
|
|
"table_bytes": 606208
|
|
},
|
|
{
|
|
"repeat": 2,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "ModifyTable",
|
|
"Operation": "Insert",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "write_probe",
|
|
"Alias": "write_probe",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 0,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 4.167,
|
|
"Actual Total Time": 4.167,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4828,
|
|
"Shared Read Blocks": 2,
|
|
"Shared Dirtied Blocks": 71,
|
|
"Shared Written Blocks": 71,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"WAL Records": 3036,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 639392,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Function Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Function Name": "generate_series",
|
|
"Alias": "i",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 88,
|
|
"Actual Startup Time": 0.182,
|
|
"Actual Total Time": 1.196,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 15,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.105,
|
|
"Triggers": [],
|
|
"Execution Time": 4.214
|
|
},
|
|
"transaction": {
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 1\nnumber of transactions actually processed: 1/1\nnumber of failed transactions: 0 (0.000%)\nlatency average = 7.627 ms\ninitial connection time = 1.266 ms\ntps = 131.113151 (without initial connection time)\n",
|
|
"latency_avg_ms": 7.627,
|
|
"tps": 131.113151,
|
|
"errors": 0
|
|
},
|
|
"table_bytes": 606208
|
|
},
|
|
{
|
|
"repeat": 3,
|
|
"plan": {
|
|
"Plan": {
|
|
"Node Type": "ModifyTable",
|
|
"Operation": "Insert",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Relation Name": "write_probe",
|
|
"Alias": "write_probe",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 0,
|
|
"Plan Width": 0,
|
|
"Actual Startup Time": 3.86,
|
|
"Actual Total Time": 3.861,
|
|
"Actual Rows": 0,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 4827,
|
|
"Shared Read Blocks": 2,
|
|
"Shared Dirtied Blocks": 71,
|
|
"Shared Written Blocks": 71,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"WAL Records": 3036,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 639392,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Function Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Function Name": "generate_series",
|
|
"Alias": "i",
|
|
"Startup Cost": 0.0,
|
|
"Total Cost": 42.5,
|
|
"Plan Rows": 1000,
|
|
"Plan Width": 88,
|
|
"Actual Startup Time": 0.166,
|
|
"Actual Total Time": 1.092,
|
|
"Actual Rows": 1000,
|
|
"Actual Loops": 1,
|
|
"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,
|
|
"WAL Records": 0,
|
|
"WAL FPI": 0,
|
|
"WAL Bytes": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 15,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.148,
|
|
"Triggers": [],
|
|
"Execution Time": 3.889
|
|
},
|
|
"transaction": {
|
|
"raw": "pgbench (17.6)\ntransaction type: /tmp/lab2-bench.sql\nscaling factor: 1\nquery mode: prepared\nnumber of clients: 1\nnumber of threads: 1\nmaximum number of tries: 1\nnumber of transactions per client: 1\nnumber of transactions actually processed: 1/1\nnumber of failed transactions: 0 (0.000%)\nlatency average = 7.541 ms\ninitial connection time = 1.358 ms\ntps = 132.608407 (without initial connection time)\n",
|
|
"latency_avg_ms": 7.541,
|
|
"tps": 132.608407,
|
|
"errors": 0
|
|
},
|
|
"table_bytes": 606208
|
|
}
|
|
],
|
|
"resources": {
|
|
"measurement_seconds": 19.615,
|
|
"cpu_percent": 17.127,
|
|
"memory_before_bytes": 351948800,
|
|
"memory_after_bytes": 392208384,
|
|
"note": "cgroup memory includes shared buffers/page cache, not API RSS; CPU window includes setup and SQL trials"
|
|
}
|
|
}
|
|
],
|
|
"backup_restore": {
|
|
"backup_seconds": 0.317,
|
|
"restore_seconds": 0.5,
|
|
"dump_bytes": 3021508,
|
|
"dump_sha256": "3634df322742b06aa892077bd094c881efcf3aae117d8450ae7da00753a66fd5",
|
|
"before": {
|
|
"users": 1,
|
|
"chats": 4,
|
|
"members": 4,
|
|
"messages": 100000,
|
|
"fingerprint": "1ffe686336b1693b25867f7bc2a823bf",
|
|
"samples": [
|
|
{
|
|
"id": "00009263-a452-c704-35ab-2b606a67bb4a",
|
|
"chat_id": "00000000-0000-4000-8000-000000000001",
|
|
"sender_id": "00000000-0000-4000-8000-000000000001",
|
|
"text": "synthetic-27788xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
"created_at": "2026-01-01T00:00:00.027788+00:00"
|
|
},
|
|
{
|
|
"id": "0001adc0-ae70-10c3-41e9-1f3081e67502",
|
|
"chat_id": "00000000-0000-4000-8000-000000000001",
|
|
"sender_id": "00000000-0000-4000-8000-000000000001",
|
|
"text": "synthetic-31865xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
"created_at": "2026-01-01T00:00:00.031865+00:00"
|
|
},
|
|
{
|
|
"id": "0003b9d6-a698-d6b9-fd22-00dff7a0a44a",
|
|
"chat_id": "00000000-0000-4000-8000-000000000003",
|
|
"sender_id": "00000000-0000-4000-8000-000000000001",
|
|
"text": "synthetic-2806xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
"created_at": "2026-01-01T00:00:00.002806+00:00"
|
|
},
|
|
{
|
|
"id": "0003c03f-0f35-2b54-26ff-72deec99a8d9",
|
|
"chat_id": "00000000-0000-4000-8000-000000000002",
|
|
"sender_id": "00000000-0000-4000-8000-000000000001",
|
|
"text": "synthetic-4745xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
"created_at": "2026-01-01T00:00:00.004745+00:00"
|
|
},
|
|
{
|
|
"id": "0004be48-f98f-f451-423e-0fb67cb17566",
|
|
"chat_id": "00000000-0000-4000-8000-000000000001",
|
|
"sender_id": "00000000-0000-4000-8000-000000000001",
|
|
"text": "synthetic-47439xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
"created_at": "2026-01-01T00:00:00.047439+00:00"
|
|
}
|
|
]
|
|
},
|
|
"after": {
|
|
"users": 1,
|
|
"chats": 4,
|
|
"members": 4,
|
|
"messages": 100000,
|
|
"fingerprint": "1ffe686336b1693b25867f7bc2a823bf",
|
|
"samples": [
|
|
{
|
|
"id": "00009263-a452-c704-35ab-2b606a67bb4a",
|
|
"chat_id": "00000000-0000-4000-8000-000000000001",
|
|
"sender_id": "00000000-0000-4000-8000-000000000001",
|
|
"text": "synthetic-27788xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
"created_at": "2026-01-01T00:00:00.027788+00:00"
|
|
},
|
|
{
|
|
"id": "0001adc0-ae70-10c3-41e9-1f3081e67502",
|
|
"chat_id": "00000000-0000-4000-8000-000000000001",
|
|
"sender_id": "00000000-0000-4000-8000-000000000001",
|
|
"text": "synthetic-31865xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
"created_at": "2026-01-01T00:00:00.031865+00:00"
|
|
},
|
|
{
|
|
"id": "0003b9d6-a698-d6b9-fd22-00dff7a0a44a",
|
|
"chat_id": "00000000-0000-4000-8000-000000000003",
|
|
"sender_id": "00000000-0000-4000-8000-000000000001",
|
|
"text": "synthetic-2806xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
"created_at": "2026-01-01T00:00:00.002806+00:00"
|
|
},
|
|
{
|
|
"id": "0003c03f-0f35-2b54-26ff-72deec99a8d9",
|
|
"chat_id": "00000000-0000-4000-8000-000000000002",
|
|
"sender_id": "00000000-0000-4000-8000-000000000001",
|
|
"text": "synthetic-4745xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
"created_at": "2026-01-01T00:00:00.004745+00:00"
|
|
},
|
|
{
|
|
"id": "0004be48-f98f-f451-423e-0fb67cb17566",
|
|
"chat_id": "00000000-0000-4000-8000-000000000001",
|
|
"sender_id": "00000000-0000-4000-8000-000000000001",
|
|
"text": "synthetic-47439xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
"created_at": "2026-01-01T00:00:00.047439+00:00"
|
|
}
|
|
]
|
|
},
|
|
"equal": true,
|
|
"source_after_backup_messages": 100001,
|
|
"restored_messages": 100000,
|
|
"post_backup_marker_present": false,
|
|
"new_storage": "restore-db, separate named restore_data volume, new empty database",
|
|
"rpo": "snapshot cutoff; demonstrated 1 later committed message absent, no WAL archive/PITR",
|
|
"rto": "restore only; excludes incident detection/provisioning/API switchover"
|
|
},
|
|
"result": "PASS"
|
|
}
|