From 9520bd8bbc6532bfe6f138bfe9e09f690ada9fab Mon Sep 17 00:00:00 2001 From: mnoskov Date: Tue, 21 Apr 2026 18:04:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=BA=D1=82=D0=B8=D0=BA?= =?UTF-8?q?=D0=B0=20'EXPLAIN'=20-=20GreenPlum?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mnoskov/greenplum/practice_explain.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 mnoskov/greenplum/practice_explain.txt diff --git a/mnoskov/greenplum/practice_explain.txt b/mnoskov/greenplum/practice_explain.txt new file mode 100644 index 0000000..9393ecd --- /dev/null +++ b/mnoskov/greenplum/practice_explain.txt @@ -0,0 +1,6 @@ +Задание 1 + - если orders DISTRIBUTED BY user_id, то будет 'Seq Scan on orders' -> 'HashAggregate'. Redistribute Motion(по user_id) пропадет, потому что все уже распределено по user_id; + +Задание 2 + - Это называется Skew. + - Чтобы избежать skew, нужно выбрать столбец для распределения с нормальной кардинальностью. Или делать destributed randomly если не нужно join. \ No newline at end of file