Larger-than-memory data exceeds available main memory, so processing must avoid loading the complete dataset or data structure at once. Two foundational techniques are memory mapping and chunking, applied here to Parquet and CSV files. section 8.3
Dask extends familiar pandas- and NumPy-like interfaces to larger-than-memory data frames and arrays. Its partitioned data model and mostly lazy execution differ from eager in-memory libraries, making the execution model central to effective use. section 10.0 section 10.4
Practical approaches include:
- Use memory mapping or chunking as direct techniques for processing oversized files. section 8.3
- Use Dask when larger-than-memory arrays or data frames require partitioned computation across a single machine or larger architectures. section 10.0 section 10.4
- Inspect task graphs, persistence, repartitioning, and scheduler behavior when analyzing execution and performance trade-offs. section 10.4
From files to partitioned computation
A CSV or Parquet workload can begin with chunking or memory mapping. A larger analysis can instead use a Dask data frame or array, inspect its task graph, and choose an execution architecture appropriate to the environment. section 8.3 section 10.4
