> ## 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.

# optimize_min_* session settings

> ClickHouse session settings in the optimize_min_* 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).

## optimize\_min\_equality\_disjunction\_chain\_length

Type

UInt64

Default

3

The minimum length of the expression `expr = x1 OR ... expr = xN` for optimization

## optimize\_min\_inequality\_conjunction\_chain\_length

Type

UInt64

Default

3

The minimum length of the expression `expr <> x1 AND ... expr <> xN` for optimization

## optimize\_min\_max\_from\_files

Type

Bool

Default

1

Enables or disables computing `min` and `max` of columns from the statistics stored in data files instead of reading the data, for queries whose only aggregate functions are `min` and `max` of table columns, without `GROUP BY` and without filters. It applies to the table function/engine `file` with the `Parquet` format (not to files inside archives), for integer (up to 64 bits), date, date-time and decimal columns whose column chunk statistics are present in every row group.

Possible values:

* 0 - Optimization disabled.
* 1 - Optimization enabled.
