Files
mtusi2026lab2/evidence/track2-indexes-my.json
2026-10-16 19:49:48 +03:00

503 lines
12 KiB
JSON

{
"environment": {
"postgres": "17.6",
"shared_buffers": "128MB",
"work_mem": "4MB",
"fsync": "on",
"synchronous_commit": "on",
"cpus": 8,
"python": "3.14.0",
"platform": "Windows-11-10.0.26200-SP0"
},
"dataset": {
"messages": 100000,
"chats": 563,
"chat_size_distribution": {
"50000": 1,
"20000": 1,
"10000": 1,
"1000": 10,
"100": 50,
"10": 500
},
"text_length_chars": "10..400 (ðàâíîìåðíî)",
"page_size": 50,
"read_runs": 300,
"warmup": 20,
"single_inserts": 2000,
"bulk_repeats": 3,
"order": "forward"
},
"configs": {
"C0_pk_only": {
"ddl": null,
"writes": {
"bulk_insert_100k_seconds": {
"runs": [
3.279,
2.998,
2.954
],
"median": 2.998
},
"single_insert_ms": {
"n": 2000,
"mean": 2.04,
"p50": 1.77,
"p95": 2.782,
"p99": 9.041
},
"history_index_bytes": 0,
"table_bytes": 49356800,
"pk_index_bytes": 4399104
},
"reads": {
"Q1_first_page_giant_50k": {
"p50_ms": 20.143,
"p95_ms": 21.423,
"plan": {
"nodes": [
"Seq Scan",
"Sort",
"Gather Merge",
"Limit"
],
"execution_ms": 16.284,
"shared_buffers": 6113,
"rows": 51
}
},
"Q2_deep_keyset_giant_at_40k": {
"p50_ms": 14.824,
"p95_ms": 18.251,
"plan": {
"nodes": [
"Seq Scan",
"Sort",
"Gather Merge",
"Limit"
],
"execution_ms": 14.493,
"shared_buffers": 6055,
"rows": 51
}
},
"Q3_first_page_tiny_10": {
"p50_ms": 14.878,
"p95_ms": 16.222,
"plan": {
"nodes": [
"Seq Scan",
"Sort",
"Limit"
],
"execution_ms": 13.788,
"shared_buffers": 6025,
"rows": 10
}
},
"Q4_keyset_mid_1k_at_500": {
"p50_ms": 14.544,
"p95_ms": 19.133,
"plan": {
"nodes": [
"Seq Scan",
"Sort",
"Limit"
],
"execution_ms": 16.134,
"shared_buffers": 6025,
"rows": 51
}
},
"Q5_OFFSET_40000_giant": {
"p50_ms": 68.21,
"p95_ms": 73.534,
"plan": {
"nodes": [
"Seq Scan",
"Sort",
"Gather Merge",
"Limit"
],
"execution_ms": 52.653,
"shared_buffers": 6113,
"rows": 51
}
}
}
},
"C1_chat_id": {
"ddl": "CREATE INDEX hist_idx ON messages (chat_id)",
"writes": {
"bulk_insert_100k_seconds": {
"runs": [
3.061,
3.026,
3.2
],
"median": 3.061
},
"single_insert_ms": {
"n": 2000,
"mean": 1.881,
"p50": 1.787,
"p95": 2.476,
"p99": 3.015
},
"history_index_bytes": 909312,
"table_bytes": 49356800,
"pk_index_bytes": 4366336
},
"reads": {
"Q1_first_page_giant_50k": {
"p50_ms": 14.884,
"p95_ms": 16.423,
"plan": {
"nodes": [
"Seq Scan",
"Sort",
"Gather Merge",
"Limit"
],
"execution_ms": 13.512,
"shared_buffers": 6113,
"rows": 51
}
},
"Q2_deep_keyset_giant_at_40k": {
"p50_ms": 14.3,
"p95_ms": 15.906,
"plan": {
"nodes": [
"Bitmap Index Scan",
"Bitmap Heap Scan",
"Sort",
"Limit"
],
"execution_ms": 12.621,
"shared_buffers": 3133,
"rows": 51
}
},
"Q3_first_page_tiny_10": {
"p50_ms": 0.957,
"p95_ms": 1.473,
"plan": {
"nodes": [
"Index Scan",
"Sort",
"Limit"
],
"execution_ms": 0.05,
"shared_buffers": 4,
"rows": 10
}
},
"Q4_keyset_mid_1k_at_500": {
"p50_ms": 1.787,
"p95_ms": 2.624,
"plan": {
"nodes": [
"Index Scan",
"Sort",
"Limit"
],
"execution_ms": 0.382,
"shared_buffers": 91,
"rows": 51
}
},
"Q5_OFFSET_40000_giant": {
"p50_ms": 62.441,
"p95_ms": 68.187,
"plan": {
"nodes": [
"Seq Scan",
"Sort",
"Gather Merge",
"Limit"
],
"execution_ms": 60.441,
"shared_buffers": 6113,
"rows": 51
}
}
}
},
"C2_chat_created_id": {
"ddl": "CREATE INDEX hist_idx ON messages (chat_id, created_at, id)",
"writes": {
"bulk_insert_100k_seconds": {
"runs": [
3.12,
3.112,
3.109
],
"median": 3.112
},
"single_insert_ms": {
"n": 2000,
"mean": 1.965,
"p50": 1.733,
"p95": 2.488,
"p99": 8.053
},
"history_index_bytes": 7184384,
"table_bytes": 49356800,
"pk_index_bytes": 4374528
},
"reads": {
"Q1_first_page_giant_50k": {
"p50_ms": 1.219,
"p95_ms": 1.86,
"plan": {
"nodes": [
"Index Scan",
"Limit"
],
"execution_ms": 0.066,
"shared_buffers": 7,
"rows": 51
}
},
"Q2_deep_keyset_giant_at_40k": {
"p50_ms": 1.196,
"p95_ms": 1.721,
"plan": {
"nodes": [
"Index Scan",
"Limit"
],
"execution_ms": 0.059,
"shared_buffers": 12,
"rows": 51
}
},
"Q3_first_page_tiny_10": {
"p50_ms": 0.932,
"p95_ms": 1.533,
"plan": {
"nodes": [
"Index Scan",
"Limit"
],
"execution_ms": 0.041,
"shared_buffers": 5,
"rows": 10
}
},
"Q4_keyset_mid_1k_at_500": {
"p50_ms": 1.25,
"p95_ms": 1.847,
"plan": {
"nodes": [
"Index Scan",
"Limit"
],
"execution_ms": 0.066,
"shared_buffers": 10,
"rows": 51
}
},
"Q5_OFFSET_40000_giant": {
"p50_ms": 9.21,
"p95_ms": 10.112,
"plan": {
"nodes": [
"Index Scan",
"Limit"
],
"execution_ms": 10.02,
"shared_buffers": 3955,
"rows": 51
}
}
}
},
"C3_covering_include": {
"ddl": "CREATE INDEX hist_idx ON messages (chat_id, created_at, id) INCLUDE (sender_id, text)",
"writes": {
"bulk_insert_100k_seconds": {
"runs": [
3.791,
3.695,
3.919
],
"median": 3.791
},
"single_insert_ms": {
"n": 2000,
"mean": 1.84,
"p50": 1.741,
"p95": 2.373,
"p99": 2.899
},
"history_index_bytes": 37306368,
"table_bytes": 49356800,
"pk_index_bytes": 4349952
},
"reads": {
"Q1_first_page_giant_50k": {
"p50_ms": 1.184,
"p95_ms": 1.863,
"plan": {
"nodes": [
"Index Only Scan",
"Limit"
],
"execution_ms": 0.062,
"shared_buffers": 6,
"rows": 51
}
},
"Q2_deep_keyset_giant_at_40k": {
"p50_ms": 1.221,
"p95_ms": 1.916,
"plan": {
"nodes": [
"Index Only Scan",
"Limit"
],
"execution_ms": 0.085,
"shared_buffers": 6,
"rows": 51
}
},
"Q3_first_page_tiny_10": {
"p50_ms": 1.05,
"p95_ms": 1.488,
"plan": {
"nodes": [
"Index Only Scan",
"Limit"
],
"execution_ms": 0.043,
"shared_buffers": 4,
"rows": 10
}
},
"Q4_keyset_mid_1k_at_500": {
"p50_ms": 1.3,
"p95_ms": 2.022,
"plan": {
"nodes": [
"Index Only Scan",
"Limit"
],
"execution_ms": 0.073,
"shared_buffers": 8,
"rows": 51
}
},
"Q5_OFFSET_40000_giant": {
"p50_ms": 8.186,
"p95_ms": 10.23,
"plan": {
"nodes": [
"Index Only Scan",
"Limit"
],
"execution_ms": 9.554,
"shared_buffers": 1474,
"rows": 51
}
}
}
},
"C4_global_created_id": {
"ddl": "CREATE INDEX hist_idx ON messages (created_at, id)",
"writes": {
"bulk_insert_100k_seconds": {
"runs": [
3.189,
3.259,
3.973
],
"median": 3.259
},
"single_insert_ms": {
"n": 2000,
"mean": 2.09,
"p50": 1.904,
"p95": 2.826,
"p99": 3.545
},
"history_index_bytes": 5193728,
"table_bytes": 49356800,
"pk_index_bytes": 4341760
},
"reads": {
"Q1_first_page_giant_50k": {
"p50_ms": 3.453,
"p95_ms": 4.159,
"plan": {
"nodes": [
"Index Scan",
"Limit"
],
"execution_ms": 2.093,
"shared_buffers": 5500,
"rows": 51
}
},
"Q2_deep_keyset_giant_at_40k": {
"p50_ms": 1.492,
"p95_ms": 2.025,
"plan": {
"nodes": [
"Index Scan",
"Limit"
],
"execution_ms": 0.081,
"shared_buffers": 11,
"rows": 51
}
},
"Q3_first_page_tiny_10": {
"p50_ms": 32.912,
"p95_ms": 35.359,
"plan": {
"nodes": [
"Seq Scan",
"Sort",
"Limit"
],
"execution_ms": 12.81,
"shared_buffers": 6025,
"rows": 10
}
},
"Q4_keyset_mid_1k_at_500": {
"p50_ms": 1.491,
"p95_ms": 2.278,
"plan": {
"nodes": [
"Index Scan",
"Limit"
],
"execution_ms": 0.286,
"shared_buffers": 669,
"rows": 51
}
},
"Q5_OFFSET_40000_giant": {
"p50_ms": 67.904,
"p95_ms": 74.677,
"plan": {
"nodes": [
"Seq Scan",
"Sort",
"Gather Merge",
"Limit"
],
"execution_ms": 57.802,
"shared_buffers": 6113,
"rows": 51
}
}
}
}
}
}