Skip to content

Commit

Permalink
[docs](insert) Add removed insert_timeout description to 2.1\3.0\mast…
Browse files Browse the repository at this point in the history
…er (#1895)

## Versions 

- [x] dev
- [x] 3.0
- [x] 2.1
- [ ] 2.0

## Languages

- [x] Chinese
- [x] English

## Docs Checklist

- [ ] Checked by AI
- [ ] Test Cases Built
  • Loading branch information
TangSiyang2001 authored Feb 18, 2025
1 parent b983f9a commit 81847de
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ INSERT INTO test WITH LABEL `label1` (c1, c2) SELECT * from test2;

2. Timeout time


The timeout for INSERT operations is controlled by [session variable](../../../../advanced/variables.md) `insert_timeout`. The default is 4 hours. If it times out, the job will be canceled.
The timeout for an INSERT operation is governed by max(insert_timeout, query_timeout). Both are environment variables, with insert_timeout defaulting to 4 hours and query_timeout defaulting to 5 minutes. If the operation exceeds the timeout, the job will be canceled. The introduction of insert_timeout is to ensure that INSERT statements have a longer default timeout, allowing import tasks to be unaffected by the shorter default timeout typically applied to regular queries.

3. Label and atomicity

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ INSERT INTO test WITH LABEL `label1` (c1, c2) SELECT * from test2;

2. 超时时间

INSERT 操作的超时时间由 [会话变量](../../../../advanced/variables.md) `insert_timeout` 控制。默认为 4 小时。超时则作业会被取消。
INSERT 操作的超时时间由`max(insert_timeout, query_timeout)` 控制。二者均为环境变量,insert_timeout默认为 4 小时,query_timeout默认为5分钟。超时则作业会被取消。引入`insert_timeout`的原因是让insert语句默认拥有较长的超时时间,
使导入任务不受普通查询默认较短的超时时间的影响。

3. Label 和原子性

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ INSERT INTO test WITH LABEL `label1` (c1, c2) SELECT * from test2;

2. 超时时间

INSERT 操作的超时时间由 [会话变量](../../../../advanced/variables.md) `insert_timeout` 控制。默认为 4 小时。超时则作业会被取消
INSERT 操作的超时时间由`max(insert_timeout, query_timeout)` 控制。二者均为环境变量,insert_timeout默认为 4 小时,query_timeout默认为5分钟。超时则作业会被取消。引入`insert_timeout`的原因是让insert语句默认拥有较长的超时时间,
使导入任务不受普通查询默认较短的超时时间的影响

3. Label 和原子性

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ INSERT INTO test WITH LABEL `label1` (c1, c2) SELECT * from test2;

2. 超时时间

INSERT 操作的超时时间由 [会话变量](../../../../advanced/variables.md) `insert_timeout` 控制。默认为 4 小时。超时则作业会被取消。
INSERT 操作的超时时间由`max(insert_timeout, query_timeout)` 控制。二者均为环境变量,insert_timeout默认为 4 小时,query_timeout默认为5分钟。超时则作业会被取消。引入`insert_timeout`的原因是让insert语句默认拥有较长的超时时间,
使导入任务不受普通查询默认较短的超时时间的影响。

3. Label 和原子性

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ INSERT INTO test WITH LABEL `label1` (c1, c2) SELECT * from test2;

2. Timeout time


The timeout for INSERT operations is controlled by [session variable](../../../../advanced/variables.md) `insert_timeout`. The default is 4 hours. If it times out, the job will be canceled.
The timeout for an INSERT operation is governed by max(insert_timeout, query_timeout). Both are environment variables, with insert_timeout defaulting to 4 hours and query_timeout defaulting to 5 minutes. If the operation exceeds the timeout, the job will be canceled. The introduction of insert_timeout is to ensure that INSERT statements have a longer default timeout, allowing import tasks to be unaffected by the shorter default timeout typically applied to regular queries.

3. Label and atomicity

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,8 @@ INSERT INTO test WITH LABEL `label1` (c1, c2) SELECT * from test2;

2. Timeout time

The timeout for an INSERT operation is governed by max(insert_timeout, query_timeout). Both are environment variables, with insert_timeout defaulting to 4 hours and query_timeout defaulting to 5 minutes. If the operation exceeds the timeout, the job will be canceled. The introduction of insert_timeout is to ensure that INSERT statements have a longer default timeout, allowing import tasks to be unaffected by the shorter default timeout typically applied to regular queries.

The timeout for INSERT operations is controlled by [session variable](../../../../advanced/variables.md) `insert_timeout`. The default is 4 hours. If it times out, the job will be canceled.

3. Label and atomicity

The INSERT operation also guarantees the atomicity of imports, see the [Import Transactions and Atomicity](../../../../data-operate/import/import-scenes/load-atomicity.md) documentation.
Expand Down

0 comments on commit 81847de

Please sign in to comment.