> ## 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_index_for_in_with_subqueries_* session settings

> ClickHouse session settings in the use_index_for_in_with_subqueries_* 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\_index\_for\_in\_with\_subqueries

Type

Bool

Default

1

Try using an index if there is a subquery or a table expression on the right side of the IN operator.

## use\_index\_for\_in\_with\_subqueries\_max\_values

Type

UInt64

Default

0

The maximum size of the set in the right-hand side of the IN operator to use table index for filtering. It allows to avoid performance degradation and higher memory usage due to the preparation of additional data structures for large queries. Zero means no limit.
