Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some tiflash tune instructions #6041

Merged
merged 3 commits into from
Apr 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tiflash/tune-tiflash-performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,13 @@ aliases: ['/docs-cn/dev/tiflash/tune-tiflash-performance/','/docs-cn/dev/referen
```sql
set @@tidb_opt_distinct_agg_push_down = 1;
```

5. 在 Join 没有选择 MPP 执行模式的情况下,调整参数使 Join 算子选择 MPP 执行:

`tidb_opt_network_factor` 变量用来设置优化器计算代价时考虑网络开销代价的比例。当这个值越小时,TiDB 对于大量网络传输的代价估算就更小,从而更倾向于选择 MPP 算子。

{{< copyable "sql" >}}

```sql
set @@tidb_opt_network_factor = 0.001;
```