Redshift warehouse workload design
A warehouse for repeated analytics
Amazon Redshift is a column-oriented, distributed SQL warehouse for analytical scans, joins and aggregates. Use it when repeated reports combine large fact tables with dimension tables; keep individual order writes in a transactional database. Provisioned clusters expose node capacity, while Serverless manages compute capacity in Redshift Processing Units (RPUs). Neither eliminates storage, security or workload planning. The local example groups sales by region; the result is 3500 cents for north and 900 for south.
Load, transform and export
Stage files in a private S3 prefix. COPY loads files in parallel using an authorized IAM role; validate input in a staging table, reconcile row counts and merge into final tables with a repeatable batch identity. UNLOAD writes query results to S3; protect its output prefix and encryption separately. Do not embed credentials in SQL. The following is a local SQL aggregate, not a COPY or UNLOAD command.
SELECT region, SUM(cents) FROM sales GROUP BY region ORDER BY region;Distribution, sorting and workload control
Distribution determines where rows reside across compute slices: KEY can colocate matching join keys, EVEN spreads rows, ALL replicates a table and AUTO delegates choice. Skewed keys can overload a slice. Sort keys organize rows and can reduce scanned blocks for range filters; distribution and sorting solve different problems. Start with automatic optimization where appropriate and inspect EXPLAIN plus actual query statistics. Separate long ETL from interactive queries; provisioned workload management queues and priorities help manage contention. Serverless capacity and usage limits control resource allocation and consumption, not guaranteed response time.
Capacity and cost decisions
Compare provisioned node hours (including eligible extra compute), Serverless RPU-hours, storage, snapshots and transfers. In a hypothetical model 16 RPUs for half an hour at 0.50 units per RPU-hour costs 4 units for compute alone. Actual billable durations and rates differ; use usage views, limits and billing alerts before provisioning. Compare query queue time, execution time, skew and workload concurrency; do not infer warehouse performance from the SQLite lab.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Redshift warehouse workload design — knowledge check
Select and operate analytical SQL, search and BI workloads.
Which workload suits Redshift?
What is COPY used for?
What problem does distribution KEY address?
Which helps investigate a slow query?
In the hypothetical model 16 RPUs for 0.5 hours at 0.50 units cost what?