Analyzing and improving queries for provisioned clusters
The default table encoding, sort key, and distribution key in Amazon Redshift is AUTO. Amazon Redshift can learn from the workloads and automatically set the right encoding and sort and distribution style, which are the biggest contributors to table design and optimization. Amazon Redshift also provides insights into the query plan, which helps to optimize the queries when authoring them. It lists the detailed steps it takes to fetch the data.
Getting ready
To complete this recipe, you will need:
- An IAM user with access to Amazon Redshift
- An Amazon Redshift provisioned cluster deployed in the AWS Region eu-west-1
- Amazon Redshift provisioned cluster master user credentials
- Access to any SQL interface, such as a SQL client or Amazon Redshift Query Editor V2
- An IAM role attached to an Amazon Redshift provisioned cluster that can access Amazon S3; we will refer to it in the recipes with...