Skip to content

[cherry-pick] : cherry-pick 17161 17020 16522 to save memory useage for dup check and clean up code - #17211

Merged
mergify[bot] merged 8 commits into
matrixorigin:1.2-devfrom
jensenojs:cherry-pick
Jul 14, 2024
Merged

mergify[bot] merged 8 commits into
matrixorigin:1.2-devfrom
jensenojs:cherry-pick

Conversation

@jensenojs

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue ##16375

What this PR does / why we need it:

optmize duplicate check memory usage for sql like insert into t1 selct from t2

@mergify
mergify Bot requested a review from sukki37 June 28, 2024 09:38
@mergify mergify Bot added the kind/bug Something isn't working label Jun 28, 2024
@matrix-meow matrix-meow added the size/L Denotes a PR that changes [500,999] lines label Jun 28, 2024
@jensenojs

Copy link
Copy Markdown
Contributor Author

提这个cherry-pick的原因是1.2-dev上也有在insert into select大数据量场景下因为gc导致耗时多了一倍的问题, 因此先要想办法把这里的内存占用给降下来, 问题能否修复需要再验证, 可能还需要再cp几个其他人的pr.

#17143 (comment)


等相关的内存占用的优化, 和统计信息的确认能过之后, 再请大家review这个pr, 现在弄中移的case

@jensenojs

jensenojs commented Jul 1, 2024 •

Copy link
Copy Markdown
Contributor Author
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,200000000) g;

在这个pr上的测试结果 : 耗时 : 1 min 9.46
heap :

image

在main上的测试结果 : 耗时 : 1 min 23.50
heap :

image

同时自检也没有发现fuzzy有异常报错的问题

Comment thread proto/plan.proto Resolved
@mergify
mergify Bot merged commit 948902c into matrixorigin:1.2-dev Jul 14, 2024
@jensenojs
jensenojs deleted the cherry-pick branch July 25, 2024 02:44
iamlinjunhong pushed a commit to iamlinjunhong/matrixone that referenced this pull request Jun 25, 2025
…or dup check and clean up code (matrixorigin#17211)

optmize duplicate check memory usage for sql like insert into t1 selct from t2

Approved by: @m-schen, @badboynt1, @zhangxu19830126, @ouyuanning, @aunjgr, @sukki37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/L Denotes a PR that changes [500,999] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants