# How do I choose single-file, parallel, or partitioned output for a Snowflake export?

Exam: COF-C03 — SnowPro Core Certification Exam
Knowledge domain: Data Loading, Unloading, and Connectivity
Updated: 2026-11-25T08:00:25.807342+00:00
HTML: https://learningpathx.com/faq/COF-C03/cofc03-unload-file-count-size-and-partitions.html

## Also asked as

- What controls the number, size, and layout of Snowflake unload files?
- When should I use SINGLE, MAX\_FILE\_SIZE, or PARTITION BY in a Snowflake unload?

Keep the default parallel output for consumers that can process multiple files. Set `SINGLE = TRUE` when the receiver requires one file and you accept the potential throughput cost. Use `PARTITION BY` when directory-level pruning helps a downstream consumer and the partition values are safe to expose.

With parallel output, Snowflake adds a generated suffix to filenames. A path prefix is a naming hint, so capture the generated names rather than guessing them. `MAX_FILE_SIZE` influences file sizes and does not guarantee a specific count or strict byte cap. Leave headroom below any hard downstream or storage limit. With `SINGLE = TRUE`, give the destination an explicit filename and extension that matches the actual compression. For example, use a `.csv.gz` name when specifying GZIP compression.

`PARTITION BY` uses a string-valued expression and places its values in object paths. These paths can also appear in Snowflake support logs. Use a non-sensitive bucket such as a delivery date. Partitioned unloads require query IDs in the filenames and cannot use `SINGLE = TRUE` or `OVERWRITE = TRUE`. Verify layout and file sizes from the command's output or stage listing using a representative data set.

[Unload options and partition handling](https://docs.snowflake.com/en/sql-reference/sql/copy-into-location) · [Data unloading considerations](https://docs.snowflake.com/en/user-guide/data-unload-considerations)

Source: [Unloading Data and Building Reliable Export Workflows](https://learningpathx.com/news/unloading-data-and-building-reliable-export-workflows.html)
