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

[#6238] improvement(storage): Improve get role performance when roles is bound to many metadata. #6455

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

FourFriends
Copy link
Contributor

What changes were proposed in this pull request?

fix issue #6238
improve performance when a single role is bound to many metadata.

Why are the changes needed?

Use batch queries when getting role securable object full names instead of loop queries to get each securable object full name.

Fix: #6238

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit tests and integration tests have all passed, this feature has been running internally at Xiaomi for two weeks.

@FourFriends
Copy link
Contributor Author

In xiaomi company, we find when roles is bounded to many securable objects, then get role is very slow, so we try so solve get role function.

@FourFriends FourFriends changed the title [#6238] Improve performance when roles is bound to many metadata. [#6238] Improve get role performance when roles is bound to many metadata. Feb 14, 2025
@jerqi jerqi changed the title [#6238] Improve get role performance when roles is bound to many metadata. [#6238] improvement(storage): Improve get role performance when roles is bound to many metadata. Feb 14, 2025
Copy link
Contributor

@jerqi jerqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jerqi
Copy link
Contributor

jerqi commented Feb 17, 2025

@yuqi1129 Do U have any other suggestion?

@yuqi1129
Copy link
Contributor

@yuqi1129 Do U have any other suggestion?

No, it looks good to me.

@jerqi jerqi merged commit 30ea1dc into apache:main Feb 17, 2025
28 checks passed
@jerqi
Copy link
Contributor

jerqi commented Feb 17, 2025

Merged. @yuqi1129 Thanks for your review. @FourFriends. thanks for your first contribution. It's a great start. Welcome to join the Gravitino community and enjoy your trip of open source.

Abyss-lord pushed a commit to Abyss-lord/gravitino that referenced this pull request Feb 19, 2025
… roles is bound to many metadata. (apache#6455)

### What changes were proposed in this pull request?

fix issue apache#6238
improve performance when a single role is bound to many metadata.

### Why are the changes needed?

Use batch queries when getting role securable object full names instead
of loop queries to get each securable object full name.

Fix: apache#6238

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Unit tests and integration tests have all passed, this feature has been
running internally at Xiaomi for two weeks.

Co-authored-by: luoxin5 <[email protected]>
diqiu50 pushed a commit to diqiu50/gravitino that referenced this pull request Feb 19, 2025
… roles is bound to many metadata. (apache#6455)

### What changes were proposed in this pull request?

fix issue apache#6238
improve performance when a single role is bound to many metadata.

### Why are the changes needed?

Use batch queries when getting role securable object full names instead
of loop queries to get each securable object full name.

Fix: apache#6238

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Unit tests and integration tests have all passed, this feature has been
running internally at Xiaomi for two weeks.

Co-authored-by: luoxin5 <[email protected]>
Abyss-lord pushed a commit to Abyss-lord/gravitino that referenced this pull request Mar 2, 2025
… roles is bound to many metadata. (apache#6455)

### What changes were proposed in this pull request?

fix issue apache#6238
improve performance when a single role is bound to many metadata.

### Why are the changes needed?

Use batch queries when getting role securable object full names instead
of loop queries to get each securable object full name.

Fix: apache#6238

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Unit tests and integration tests have all passed, this feature has been
running internally at Xiaomi for two weeks.

Co-authored-by: luoxin5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants