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

# Настройки сеанса max_hyperscan_*

> Настройки сеанса ClickHouse из сгенерированной группы max_hyperscan_*.

Эти настройки доступны в [system.settings](https://clickhouse.com/docs/ru/reference/system-tables/settings.md) и автоматически сгенерированы из [исходного кода](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## max\_hyperscan\_regexp\_length

Тип

UInt64

По умолчанию

0

Определяет максимальную длину каждого регулярного выражения в [функциях hyperscan для множественного сопоставления](https://clickhouse.com/docs/ru/reference/functions/regular-functions/string-search-functions.md#multiMatchAny).

Возможные значения:

* Положительное целое число.
* 0 — длина не ограничена.

**Пример**

Запрос:

```sql theme={null}
SELECT multiMatchAny('abcd', ['ab','bcd','c','d']) SETTINGS max_hyperscan_regexp_length = 3;
```

Результат:

```text theme={null}
┌─multiMatchAny('abcd', ['ab', 'bcd', 'c', 'd'])─┐
│                                              1 │
└────────────────────────────────────────────────┘
```

Запрос:

```sql theme={null}
SELECT multiMatchAny('abcd', ['ab','bcd','c','d']) SETTINGS max_hyperscan_regexp_length = 2;
```

Результат:

```text theme={null}
Exception: Regexp length too large.
```

**См. также**

* [max\_hyperscan\_regexp\_total\_length](https://clickhouse.com/docs/ru/reference/settings/session-settings/max-hyperscan.md#max_hyperscan_regexp_total_length)

## max\_hyperscan\_regexp\_total\_length

Тип

UInt64

По умолчанию

0

Задаёт максимальную суммарную длину всех регулярных выражений в каждой [функции hyperscan для множественного сопоставления](https://clickhouse.com/docs/ru/reference/functions/regular-functions/string-search-functions.md#multiMatchAny).

Возможные значения:

* Положительное целое число.
* 0 — длина не ограничена.

**Пример**

Запрос:

```sql theme={null}
SELECT multiMatchAny('abcd', ['a','b','c','d']) SETTINGS max_hyperscan_regexp_total_length = 5;
```

Результат:

```text theme={null}
┌─multiMatchAny('abcd', ['a', 'b', 'c', 'd'])─┐
│                                           1 │
└─────────────────────────────────────────────┘
```

Запрос:

```sql theme={null}
SELECT multiMatchAny('abcd', ['ab','bc','c','d']) SETTINGS max_hyperscan_regexp_total_length = 5;
```

Результат:

```text theme={null}
Exception: Total regexp lengths too large.
```

**См. также**

* [max\_hyperscan\_regexp\_length](https://clickhouse.com/docs/ru/reference/settings/session-settings/max-hyperscan.md#max_hyperscan_regexp_length)
