Skip to content

Commit

Permalink
Add some Tiflash tune instructions.md (#5499)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liuxiaozhen12 authored Apr 29, 2021
1 parent 75a9312 commit 0c931e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tiflash/tune-tiflash-performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,13 @@ If you want to save machine resources and have no requirement on isolation, you
```sql
set @@tidb_opt_distinct_agg_push_down = 1;
```

5. If the `JOIN` operator does not choose the MPP mode, you can modify the value of `tidb_opt_network_factor` to make the`JOIN` operator choose the MPP mode:

The variable `tidb_opt_network_factor` is used to set the ratio of network overhead that the optimizer takes into account when calculating the cost. The smaller the variable value is, the smaller the estimated cost for a large amount of network transmissions is, and the more TiDB inclined to choose the MPP operator.

{{< copyable "sql" >}}

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

0 comments on commit 0c931e7

Please sign in to comment.