> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# temporary_files_* session settings

> ClickHouse session settings in the temporary_files_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## temporary\_files\_buffer\_size

Type

NonZeroUInt64

Default

1048576

Size of the buffer for temporary files writers. Larger buffer size means less system calls, but more memory consumption. A value above 1 GiB is reduced to 1 GiB.

## temporary\_files\_codec

Type

String

Default

LZ4

Sets compression codec for temporary files used in sorting and joining operations on disk.

Sets of `IN` that spill to disk do not compress the files that their lookups read, whatever this setting is,
because decompressing the blocks that each lookup reads costs more than reading the larger files.

Possible values:

* LZ4 — [LZ4](https://en.wikipedia.org/wiki/LZ4_\(compression_algorithm\)) compression is applied.
* NONE — No compression is applied.
