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

# move_* session settings

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

## move\_all\_conditions\_to\_prewhere

Type

Bool

Default

1

Move all viable conditions from WHERE to PREWHERE

## move\_primary\_key\_columns\_to\_end\_of\_prewhere

Type

Bool

Default

1

Move PREWHERE conditions containing primary key columns to the end of AND chain. It is likely that these conditions are taken into account during primary key analysis and thus will not contribute a lot to PREWHERE filtering.
