Analyzing and improving queries
Amazon Redshift defaults the table sort key and distribution key to AUTO. Amazon Redshift can learn from the workloads and automatically set the right sort and distribution style, the two big levers that dictate the table's design and optimization. Amazon Redshift also provides insights into the query plan, which helps optimize the queries when authoring them. This plan contains detailed steps about how to fetch the data.
Getting ready
To complete this recipe, you will need the following:
- An IAM user with access to Amazon Redshift.
- An Amazon Redshift cluster deployed in AWS region eu-west-1.
- Amazon Redshift cluster master user credentials.
- Access to any SQL interface, such as a SQL client or the Amazon Redshift Query Editor.
- An IAM role attached to an Amazon Redshift cluster that can access Amazon S3. We will reference it in this recipe as
[Your-Redshift_Role]
. - An AWS account number. We will reference it in this...