-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Improve](TabletSchemaCache) reduce duplicated memory consumption for column name and column path #31141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you for your contribution to Apache Doris. |
|
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
| } | ||
|
|
||
| Status RowCursor::init(const std::vector<TabletColumn>& schema) { | ||
| Status RowCursor::init(const std::vector<TabletColumnPtr>& schema) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: method 'init' can be made static [readability-convert-member-functions-to-static]
| Status RowCursor::init(const std::vector<TabletColumnPtr>& schema) { | |
| static Status RowCursor::init(const std::vector<TabletColumnPtr>& schema) { |
| } | ||
|
|
||
| Status RowCursor::init(const std::vector<TabletColumn>& schema, size_t column_count) { | ||
| Status RowCursor::init(const std::vector<TabletColumnPtr>& schema, size_t column_count) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: method 'init' can be made static [readability-convert-member-functions-to-static]
| Status RowCursor::init(const std::vector<TabletColumnPtr>& schema, size_t column_count) { | |
| static Status RowCursor::init(const std::vector<TabletColumnPtr>& schema, size_t column_count) { |
TPC-H: Total hot run time: 41543 ms |
TPC-DS: Total hot run time: 177764 ms |
ClickBench: Total hot run time: 31.34 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
|
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
| #include <memory> | ||
| #include <string> | ||
|
|
||
| #include "olap/olap_common.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: 'olap/olap_common.h' file not found [clang-diagnostic-error]
#include "olap/olap_common.h"
^|
TeamCity be ut coverage result: |
be/src/olap/tablet_schema.h
Outdated
| TabletColumn& mutable_column_by_uid(int32_t col_unique_id); | ||
| const std::vector<TabletColumn>& columns() const; | ||
| std::vector<TabletColumn>& mutable_columns(); | ||
| void relace_column(size_t pos, TabletColumn new_col); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace_column
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
… column name and column path Both could be reference to related field in TabletColumn.And use shared_ptr for TabletColumn in TabletSchema for later memory reuse
|
run buildall |
|
run buildall |
TPC-H: Total hot run time: 37815 ms |
TPC-DS: Total hot run time: 178474 ms |
ClickBench: Total hot run time: 30.52 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
|
TeamCity be ut coverage result: |
xiaokang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
run buildall |
|
TeamCity be ut coverage result: |
|
run cloud_p0 |
|
run buildall |
|
TeamCity be ut coverage result: |
xiaokang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
… column name and column path (#31141) Both could be reference to related field in TabletColumn.And use shared_ptr for TabletColumn in TabletSchema for later memory reuse
… column name and column path
Both could be reference to related field in TabletColumn.And use shared_ptr for TabletColumn in TabletSchema for later memory reuse
Proposed changes
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...