> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 쿼리 실행 시간 제한 설정

> 최대 쿼리 실행 시간 제한을 적용하는 방법

<div id="question">
  ## 질문
</div>

쿼리에 시간 제한을 설정하려면 어떻게 해야 하나요?

<div id="answer">
  ## 답변
</div>

`max_execution_time` 설정을 사용할 수 있습니다.

```sql theme={null}
clickhouse-cloud :) SELECT 1 SETTINGS max_execution_time=0.0001

SELECT 1
SETTINGS max_execution_time = 0.0001

Query id: 3db752a7-b94f-4456-b3b9-ccbf290d1394

0 rows in set. Elapsed: 0.113 sec.

Received exception from server (version 23.5.1):
Code: 159. DB::Exception: Received from service.aws.clickhouse.cloud:9440. DB::Exception: Timeout exceeded: elapsed 0.000557862 seconds, maximum: 0.0001. (TIMEOUT_EXCEEDED)
```
