-
Notifications
You must be signed in to change notification settings - Fork 409
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
[FLASH-524] Optimize tmt read for single stream #254
Conversation
/run-integration-tests |
static const __m128i zero16 = _mm_setzero_si128(); | ||
#endif | ||
|
||
// pos in columns is made const in MergeTreeDataSelectExecutor::read. |
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.
No guarantee of the columns‘s order, getting indexes dynamically is necessary
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.
https://github.com/pingcap/tics/blob/0f3ea5f214a0dde72229c0fc72bdf28462ccbd98/dbms/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp#L223
By now, column: pk version del is definitely at first 3.
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, please invite another reviewer into this PR
/rebuild |
/rebuild |
TMT is sorted by pk, version, delmark. If there is only one stream, for each group with same pk, we can just select the last one. |
/rebuild |
1 similar comment
/rebuild |
/run-integration-tests |
/run-integration-tests |
No description provided.