<@U04S8PLJWMT> what is dictionary encoding?
# ask-ai
h
@kapa.ai what is dictionary encoding?
k
Dictionary encoding is a data compression technique used in Parquet file formats (and others) where unique column values are stored in a "dictionary," and the actual data is represented as references (indexes) to these dictionary entries. This can significantly reduce storage size, especially for columns with many repeated values. In Airbyte, when configuring destinations like S3, GCS, or R2 with Parquet output, you can control whether dictionary encoding is enabled using the dictionary_encoding parameter. When enabled, there is one dictionary page per column per row group, and the dictionary page size can also be configured. This approach helps optimize storage and can improve performance for certain types of data, particularly those with low cardinality (few unique values) in columns. For more details, see the configuration options for Parquet output in Airbyte documentation: - [S3 Parquet Output Schema](https://docs.airbyte.com/integrations/destinations/s3#parquet) - [GCS Parquet Output Schema](https://docs.airbyte.com/integrations/destinations/gcs#parquet) - [R2 Parquet Output Schema](https://docs.airbyte.com/integrations/destinations/r2#parquet)