To optimize query performance, you can configure a mapping to analyze the target table. Target table analysis updates statistical metadata of the database tables.
You can use the Analyze Target Table option to extract sample rows from the table, analyze the samples, and save the column statistics. Amazon Redshift then updates the query planner with the statistical metadata. The query planner uses the statistical metadata to build and choose optimal plans to improve the efficiency of queries.
You can run the Analyze Target Table option after you load data to an existing table by using the