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
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.