You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "sollhui (via GitHub)" <gi...@apache.org> on 2026/01/12 08:49:24 UTC
[PR] branch-4.0: [opt](memory) lazily create column writer when flush memtable for partial update [doris]
sollhui opened a new pull request, #59772:
URL: https://github.com/apache/doris/pull/59772
pick #58982
related issue: https://github.com/apache/doris/issues/58780
Under the load to 5000-columns with 48-bucket wide table , flush memtable consume lots of memory:
 Root cause is all column writers will be created at once when init VerticalSegmentWriter, and `page_builder` of `_encoding_info ` will consume lots of memory, this pr introduces lazily creating column writer when flush memtable for partial update to solve it.
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg: https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] branch-4.0: [opt](memory) lazily create column writer when flush memtable for partial update [doris]
Posted by "sollhui (via GitHub)" <gi...@apache.org>.
sollhui commented on PR #59772:
URL: https://github.com/apache/doris/pull/59772#issuecomment-3737450917
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] branch-4.0: [opt](memory) lazily create column writer when flush memtable for partial update [doris]
Posted by "sollhui (via GitHub)" <gi...@apache.org>.
sollhui commented on PR #59772:
URL: https://github.com/apache/doris/pull/59772#issuecomment-3738674865
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] branch-4.0: [opt](memory) lazily create column writer when flush memtable for partial update [doris]
Posted by "Thearas (via GitHub)" <gi...@apache.org>.
Thearas commented on PR #59772:
URL: https://github.com/apache/doris/pull/59772#issuecomment-3737447878
Thank you for your contribution to Apache Doris.
Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
Please clearly describe your PR:
1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
3. What features were added. Why was this function added?
4. Which code was refactored and why was this part of the code refactored?
5. Which functions were optimized and what is the difference before and after the optimization?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] branch-4.0: [opt](memory) lazily create column writer when flush memtable for partial update [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59772:
URL: https://github.com/apache/doris/pull/59772#issuecomment-3738421177
# BE UT Coverage Report
Increment line coverage `84.62% (11/13)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/de36492af04075aa973b248390cd711691260987_de36492af04075aa973b248390cd711691260987/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/de36492af04075aa973b248390cd711691260987_de36492af04075aa973b248390cd711691260987/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 53.42% (18805/35202) |
| Line Coverage | 39.23% (174454/444720) |
| Region Coverage | 33.94% (135027/397896) |
| Branch Coverage | 34.86% (58287/167226) |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] branch-4.0: [opt](memory) lazily create column writer when flush memtable for partial update [doris]
Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei merged PR #59772:
URL: https://github.com/apache/doris/pull/59772
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] branch-4.0: [opt](memory) lazily create column writer when flush memtable for partial update [doris]
Posted by "sollhui (via GitHub)" <gi...@apache.org>.
sollhui commented on PR #59772:
URL: https://github.com/apache/doris/pull/59772#issuecomment-3737742173
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] branch-4.0: [opt](memory) lazily create column writer when flush memtable for partial update [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59772:
URL: https://github.com/apache/doris/pull/59772#issuecomment-3738983172
# BE UT Coverage Report
Increment line coverage `44.00% (11/25)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/568f8ad4ab06a3e764a8c1b636a3438216ea3471_568f8ad4ab06a3e764a8c1b636a3438216ea3471/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/568f8ad4ab06a3e764a8c1b636a3438216ea3471_568f8ad4ab06a3e764a8c1b636a3438216ea3471/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 53.42% (18805/35202) |
| Line Coverage | 39.22% (174443/444731) |
| Region Coverage | 33.92% (134963/397921) |
| Branch Coverage | 34.86% (58292/167241) |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org