Repository navigation
continue opt issue-16375 - #17161
Merged
Merged
continue opt issue-16375#17161
Conversation
jensenojs
requested review from
aunjgr,
badboynt1,
ouyuanning and
qingxinhome
as code owners
June 26, 2024 08:12
jensenojs
commented
Jun 26, 2024
Contributor
Author
There was a problem hiding this comment.
测试的方式如下所示 :
create table t0 (a int, b int, c int, primary key (a, b));
create table t1 like t0;
create table t2 like t0;
insert into t1 select result, result, result from generate_series(1,500000000) g;在本pr上insert into t0 select * from t1;
耗时 : 2 min 58.14 sec

在main上insert into t0 select * from t1;
耗时 : 4 min 3.82 sec

砍掉了去重本身的开销.
Contributor
Author
Contributor
|
可以建个优先级低一点的issue,看把这部分逻辑抽出来,作为优化规则放在build plan的后面吧 |
ouyuanning
approved these changes
Jun 26, 2024
Contributor
Author
我接着用下面这个issue跟踪好了 |
1 task done
jensenojs
added a commit
to jensenojs/matrixone
that referenced
this pull request
Jun 28, 2024
继续优化insert into select的内存开销 Approved by: @ouyuanning
fengttt
pushed a commit
to fengttt/matrixone
that referenced
this pull request
May 7, 2026
继续优化insert into select的内存开销 Approved by: @ouyuanning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What type of PR is this?
Which issue(s) this PR fixes:
issue ##16375
What this PR does / why we need it:
继续优化insert into select的内存开销