The Data Guy

Tables without compression


RStoolKit Result: Tables without compression

Many of us already know the importance of the compression in RedShift. We need to reduce the size of the table and improve the query performance. But make sure you should not compress the sort key column or the first column of the sort key.

Find the tables without compression:

	encoded <> 'Y'
	AND "schema" not like 'pg_temp%'

How to fix the problem:

We can compress the exisiting columns or change the compression type in RedShift. You have to recreate the table with compression. By default if you didn’t mention anything during the table creation then RedShift will automatically pick the right compression algorithm.

  1. RedShift Create table - Documentation
  2. RedShift column encoding
  3. Choosing a column compression type
  4. Redshift column encoding utility
· aws, redshift, rstoolkit


Loading Comments