Amazon Redshift: 6 Habits That Keep Your Data Warehouse Fast and Affordable
Six practical Redshift habits — distribution and sort keys, compression, bulk loads, workload management, query monitoring, and right-sizing — that keep analytics fast without letting the warehouse bill run away.
I have watched a Redshift cluster go from "this is fast" to "why is this dashboard taking two minutes" without anyone changing the queries. The data grew, the habits didn't. Redshift rewards a few boring disciplines, and punishes you quietly when you skip them. Here are six I now treat as non-negotiable.
1. Pick distribution and sort keys on purpose, not by default.
The default EVEN distribution is safe and usually slow for joins. If two big tables join on customer_id all day, distribute both on customer_id so matching rows live on the same node and the join never has to shuffle data across the network. For your sort key, pick the column you actually filter and order by most — usually a date. A query that can skip whole blocks of sorted data finishes in seconds; one that scans everything does not, no matter how big the cluster is.
2. Let compression do its job, then keep statistics honest.
Redshift compresses columns automatically on COPY, and that compression is a huge part of its speed — less disk read, less memory used. Don't fight it with wide VARCHAR(65535) columns for everything. After big loads, run ANALYZE so the planner knows the real row counts, and let VACUUM (or automatic vacuum on newer setups) reclaim space from deleted rows. Stale statistics are the most common reason a query plan suddenly gets dumb.
3. Load in bulk, never row by row.
Redshift is an analytics engine, not a transactional database. Inserting rows one at a time is the slowest, most expensive way to use it. Stage files in S3 and COPY them in, in large batches. If data arrives continuously, buffer it — a small staging table or a Kinesis Firehose delivery stream that batches — and load on a schedule. Your load jobs get faster, your cluster stays free for queries, and you stop paying for a warehouse doing a database's job badly.
4. Manage concurrency with workload management, don't just add nodes.
When ten dashboards and three ETL jobs hit the cluster at 9 am, the answer is rarely a bigger cluster first. Set up WLM queues: a short-query queue for dashboards, a separate queue for heavy ETL, and concurrency scaling for bursts. Give the dashboard queue priority and memory it actually needs. I have seen a queue change fix "slow mornings" that a cluster resize never did, for a fraction of the cost.
5. Watch the queries that spill to disk.
A query that runs out of memory and spills intermediate results to disk can be ten times slower than the same query with enough memory. Check the query monitoring views regularly — look for high disk usage, long queue wait times, and the same query showing up slow every day. Often the fix is small: a better sort key, a filter pushed earlier, or more memory for that queue. The monitoring habit matters more than any single tuning trick, because it tells you which trick to apply.
6. Right-size, then prove it every month.
RA3 nodes with managed storage separated compute from storage, which is great — and also makes it easy to over-provision compute you never use. Check actual CPU, queue time, and concurrency over a real month, not a demo day. If the cluster idles at night, consider Redshift Serverless for spiky workloads, or pause and resume on a schedule for dev clusters. Snapshot old data you rarely query, and archive it to S3. A monthly 15-minute cost review has saved me more money than any single optimization.
Key takeaways: choose distribution and sort keys for your real join and filter patterns; keep compression and statistics current; load in bulk from S3; separate dashboard and ETL workloads with WLM queues; monitor for disk spills and queue waits; and right-size on monthly evidence, not gut feel. Redshift stays fast when the boring habits stay consistent.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article