[Optimize](Variant) optimize schema update performance#45480
[Optimize](Variant) optimize schema update performance#45480eldenmoon merged 4 commits intoapache:masterfrom
Conversation
When update schema with high concurrency, updaing schemas cost is expensive. 1. update schema only when rows is not 0 2. copy_from is expensive, use copy constructor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
TeamCity be ut coverage result: |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
TeamCity be ut coverage result: |
9efc037 to
39a47e7
Compare
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
TeamCity be ut coverage result: |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
TeamCity be ut coverage result: |
| // After adding a column v2, the schema version increases, max_version_schema needs to be updated. | ||
| // _tablet_schema includes k, v, and v2 | ||
| // if v is a variant, need to add the columns decomposed from the v to the _tablet_schema. | ||
| if (_tablet_schema->num_variant_columns() > 0) { |
77eee24 to
e9f59bf
Compare
|
run buildall |
e9f59bf to
2ef1bea
Compare
|
run buildall |
|
PR approved by anyone and no changes requested. |
|
TeamCity be ut coverage result: |
|
PR approved by at least one committer and no changes requested. |
When update schema with high concurrency, updaing schemas cost is expensive. 1. update schema only when rows is not 0 2. copy_from is expensive, use copy constructor
When update schema with high concurrency, updaing schemas cost is expensive. 1. update schema only when rows is not 0 2. copy_from is expensive, use copy constructor
When update schema with high concurrency, updaing schemas cost is expensive. 1. update schema only when rows is not 0 2. copy_from is expensive, use copy constructor
When update schema with high concurrency, updaing schemas cost is expensive.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)