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

> ClickHouse session settings in the optimize_injective_* 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\_injective\_functions\_in\_group\_by

Type

Bool

Default

1

Replaces injective functions by it's arguments in GROUP BY section

## optimize\_injective\_functions\_in\_limit\_by

Type

Bool

Default

1

Replaces injective functions by their arguments in LIMIT BY section.

Example: `LIMIT 5 BY toString(x)` becomes `LIMIT 5 BY x`.

## optimize\_injective\_functions\_inside\_uniq

Type

Bool

Default

1

Delete injective functions of one argument inside uniq\*() functions.
