Commit 5acbf4e
Enable insert multiple file on AO tables.
Changes:
When enable_parallel is on, the insertMultiFiles flag is set to true when:
gp_appendonly_insert_files GUC value is greater than 1 (indicating multiple files used)
and the insert is not reserving a specific segment.
When insertMultiFiles is true, data will be appended to multiple file segments in parallel.
The default value of gp_appendonly_insert_files GUC is increased from 0 to 4, to enable up to 4 parallel insert files by default.
This allows append-only tables to scale insert performance by writing to multiple file segments in parallel. The number of parallel segments can be configured using the gp_appendonly_insert_files GUC.1 parent 824f4e8 commit 5acbf4e
3 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1068 | 1068 | | |
1069 | 1069 | | |
1070 | 1070 | | |
1071 | | - | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1072 | 1074 | | |
1073 | 1075 | | |
1074 | 1076 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2852 | 2852 | | |
2853 | 2853 | | |
2854 | 2854 | | |
2855 | | - | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
2856 | 2858 | | |
2857 | 2859 | | |
2858 | 2860 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3165 | 3165 | | |
3166 | 3166 | | |
3167 | 3167 | | |
3168 | | - | |
| 3168 | + | |
3169 | 3169 | | |
3170 | 3170 | | |
3171 | 3171 | | |
| |||
0 commit comments