AWS Redshift : DISTKEY / SORTKEY columns should be compressed?

前端 未结 1 1446
旧时难觅i
旧时难觅i 2021-01-15 01:34

Let me ask something about column compression on AWS Redshift. Now we\'re verifying what can be made better performance using appropriate diststyle, sortkeys and column comp

相关标签:
1条回答
  • 2021-01-15 01:50

    DISTKEY can be compressed but the first SORTKEY column should be uncompressed (ENCODE raw). If you have multiple sort keys (compound) the other sort key columns can be compressed.

    Also, generally recommend using a commonly filtered date/timestamp column (if one exists) as the first sort key column in a compound sort key.

    Finally, if you are joining between very large tables try using the same dist and sort keys on both tables so Redshift can use a faster merge join.

    0 讨论(0)
提交回复
热议问题