[SPARK-43902][SS] Use keyMayExist to check if key is absent and avoid gets while tracking metrics using RocksDB state store provider#41410
Closed
anishshri-db wants to merge 2 commits into
Closed
Conversation
…s while tracking metrics using RocksDB state store provider
Contributor
Author
|
cc - @HeartSaVioR - PTAL - Thx |
Contributor
Author
|
@siying - could you please take a look too ? From the comment it seems that keyMayExist is a lighter check than get. Is there more nuance here ? |
Contributor
Author
|
Checked the results here and basically it seems like with high overwrite rate, the perf actually becomes worse With low overwrite rate, the value is ~same as current. So we are not seeing the perf gain for that case either. Closing PR as not required. Current model seems to be the best, perf-wise. Thx |
Contributor
|
Thanks for the check and update! |
This file contains hidden or 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
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 changes were proposed in this pull request?
Use keyMayExist to check if key is absent and avoid gets while tracking metrics using RocksDB state store provider
Why are the changes needed?
Small change to use lighter weight check for key existence
Does this PR introduce any user-facing change?
No
How was this patch tested?
Ran all relevant unit tests