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

perf - Improve MySQL/PostgreSQL meta concurrency #5460

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

anysql
Copy link

@anysql anysql commented Dec 27, 2024

1, Optimize the ForUpdate call of doMknod/Link/Unlink/Rmdir/Rename operation
2, Change nlink operation from "Nlink = ?" to "nlink = nlink + (?)" for atomic
3, Move the parent update operation to the end of transaction
4, Remove txLock for MySQL/PostgreSQL meta engine

anysql and others added 2 commits December 27, 2024 17:19
1, Optimize the ForUpdate call of doMknod/Link/Unlink/Rmdir/Rename operation
2, Change nlink operation from "Nlink = ?" to "nlink = nlink + (?)" for atomic
3, Move the parent update operation to the end of transaction
4, Remove txLock for MySQL/PostgreSQL meta engine
@CLAassistant
Copy link

CLAassistant commented Dec 27, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

codecov bot commented Dec 27, 2024

Codecov Report

Attention: Patch coverage is 0% with 60 lines in your changes missing coverage. Please review.

Project coverage is 21.42%. Comparing base (b8eadbc) to head (bafe1cb).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
pkg/meta/sql.go 0.00% 60 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #5460       +/-   ##
===========================================
- Coverage   33.33%   21.42%   -11.91%     
===========================================
  Files         165       29      -136     
  Lines       47522    19009    -28513     
===========================================
- Hits        15842     4073    -11769     
+ Misses      29802    14453    -15349     
+ Partials     1878      483     -1395     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants