-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
support a faster unique id implement #4701
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imay
reviewed
Apr 1, 2022
kangkaisen
reviewed
Apr 1, 2022
stdpain
force-pushed
the
support_uniq_id_func
branch
3 times, most recently
from
April 1, 2022 12:46
641d971
to
0340e5c
Compare
input :[] output: TYPE_LARGEINT mysql> select uuid_numeric(); +-----------------------------------+ | uniq_id() | +-----------------------------------+ | 232491522003429759764239072851311 | +-----------------------------------+ 1 row in set (0.01 sec) performace 1FE 1BE baseline: ``` mysql> select count(*) from lineorder; +-----------+ | count(*) | +-----------+ | 606039117 | +-----------+ 1 row in set (2.47 sec) ``` parallel=1 ``` mysql> select count(uuid_numeric()) from lineorder; +------------------+ | count(uniq_id()) | +------------------+ | 606039117 | +------------------+ 1 row in set (4.53 sec) ``` parallel=6; ``` mysql> select count(uuid_numeric()) from lineorder; +------------------+ | count(uniq_id()) | +------------------+ | 606039117 | +------------------+ 1 row in set (2.62 sec) ``` ``` mysql> select count(*) from lineorder; +-----------+ | count(*) | +-----------+ | 606039117 | +-----------+ 1 row in set (2.51 sec) ```
stdpain
force-pushed
the
support_uniq_id_func
branch
from
April 1, 2022 12:51
0340e5c
to
3baea96
Compare
run starrocks_be_unittest |
run starrocks_fe_unittest |
kangkaisen
approved these changes
Apr 6, 2022
Seaven
approved these changes
Apr 6, 2022
satanson
approved these changes
Apr 6, 2022
@Mergifyio backport branch-2.2 |
mergify bot
pushed a commit
that referenced
this pull request
Apr 6, 2022
(cherry picked from commit 1b4c54a)
✅ Backports have been created
|
[FE PR Coverage check]😍 pass : 0 / 0 (0%) |
@Mergifyio backport branch-2.1 |
mergify bot
pushed a commit
that referenced
this pull request
Apr 6, 2022
(cherry picked from commit 1b4c54a)
✅ Backports have been created
|
stdpain
added a commit
that referenced
this pull request
Apr 6, 2022
(cherry picked from commit 1b4c54a)
stdpain
added a commit
that referenced
this pull request
Apr 7, 2022
(cherry picked from commit 1b4c54a)
blackstar-baba
pushed a commit
to blackstar-baba/starrocks
that referenced
this pull request
Apr 18, 2022
blackstar-baba
pushed a commit
to blackstar-baba/starrocks
that referenced
this pull request
Apr 28, 2022
jaogoy
pushed a commit
to jaogoy/starrocks
that referenced
this pull request
Nov 15, 2023
(cherry picked from commit fa59954) Co-authored-by: Kaiwei Wang <fieldsfarmer@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this:
Which issues of this PR fixes :
Fixes #
Problem Summary(Required) :
uniq_id generate rule: timestamp, backendId, rand, tid, inc
input :[]
output: TYPE_LARGEINT
mysql> select uniq_id();
+-----------------------------------+
| uniq_id() |
+-----------------------------------+
| 232491522003429759764239072851311 |
+-----------------------------------+
1 row in set (0.01 sec)
performace 1FE 1BE
baseline:
parallel=1
parallel=6;