Skip to content
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

autoid cache 1 impact the row id allocation performance #39528

Closed
tiancaiamao opened this issue Dec 1, 2022 · 0 comments · Fixed by #39534
Closed

autoid cache 1 impact the row id allocation performance #39528

tiancaiamao opened this issue Dec 1, 2022 · 0 comments · Fixed by #39534
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@tiancaiamao
Copy link
Contributor

Enhancement

When I'm testing the performance of #38442

autoid.txt

I use this table schema:

create table test (id int unsigned key nonclustered auto_increment) shard_row_id_bits=4 auto_id_cache 1;

It avoids the sequent rowid caused tikv hotspot issue.
But I find the flamegraph abnormal:

image

Row ID allocating takes too much resource!
I figure out that cause by the side effect of the auto_id_cache = 1 setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant