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

# use_partition_* session settings

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

## use\_partition\_minmax\_for\_primary\_key\_pruning

Type

Bool

Default

1

Use partition minmax index bounds to prune more granules during primary key analysis for `MergeTree` tables, when a primary key column is also an input column of the partition key.

For example, in a `MergeTree` table with `ORDER BY (id, event_time)` and `PARTITION BY toYYYYMM(event_time)`, ClickHouse will use the partition minmax index on `event_time` during primary key index analysis to make more informed granule-pruning decisions.

Possible values:

* 0 — Disabled.
* 1 — Enabled.

## use\_partition\_pruning

**Aliases**: `use_partition_key`

Type

Bool

Default

1

Use partition key to prune partitions during query execution for MergeTree tables.

Possible values:

* 0 — Disabled.
* 1 — Enabled.
