The full answer
For large datasets, organise data so engines read as little as possible, pick the processing engine by workload, pre-compute what many people ask for, and manage cost as data ages.
1. Store it efficiently
- Columnar formats (Parquet, ORC) with compression, so queries read only the columns they need.
- Open table formats, usually Apache Iceberg, for transactions, schema evolution, time travel and compaction on S3. S3 Tables manages Iceberg tables with automatic maintenance.
- Sensible file sizes: avoid millions of tiny files; compact streaming output.
2. Lay it out for the queries
- Partition by what most queries filter on, usually date, without over-partitioning.
- Sort or cluster within partitions by other common filters so file statistics let engines skip data.
- In Redshift, let automatic table optimisation choose sort and distribution keys, then tune the largest tables.
3. Use the right engine
| Workload | Service |
|---|---|
| Ad hoc SQL on S3 | Amazon Athena |
| Heavy transformation, ML features | Spark on AWS Glue, EMR or EMR Serverless |
| Many concurrent BI users, fast repeated queries | Amazon Redshift (provisioned or Serverless), with Spectrum for S3 data |
| Streams | Kinesis or MSK, with Flink or Firehose |
| Search and log analytics | Amazon OpenSearch Service |
4. Pre-compute
- Materialized views in Redshift (with auto refresh) or summary tables built by Glue, dbt or Athena CTAS, so dashboards read small tables.
- Incremental processing (Glue job bookmarks, Iceberg merges) so each run handles only new data.
5. Process close to the data
- Keep compute in the same Region as the data; filter early and push predicates down; use broadcast joins for small tables.
6. Manage cost over time
- S3 lifecycle rules or Intelligent-Tiering for older data.
- Athena workgroup limits on data scanned; Redshift Serverless base capacity and usage limits; Spot instances on EMR.
- Delete what nobody uses: unused tables and old snapshots are a common hidden cost.
7. Govern it
- One Data Catalog and Lake Formation permissions, so large datasets stay discoverable and safe as they grow.
The core idea to state: at scale, cost and speed come mostly from how much data each query reads, so layout and format matter more than the size of the cluster.
Last updated 16 October 2026