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: perform the getPrimary lookup only once during getBulk #159

Merged

Conversation

jasonk000
Copy link
Member

We can avoid doing the (potentially) expensive getPrimary call twice on the bulk get path with a little refactor. This retains the same functionality but pushes the validation logic and error emit into a callback, which allows metrics to work as-is.

before

image

after

image

…ing path

We can avoid doing the (potentially) expensive getPrimary call on the bulk get path with
a little refactor. This retains the same functionality but pushes the validation logic
and error emit into a callback, which allows metrics to work as-is.
Copy link
Contributor

@pkarumanchi9 pkarumanchi9 left a comment

Choose a reason for hiding this comment

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

LGTM!

@pkarumanchi9 pkarumanchi9 merged commit be626ed into Netflix:master Feb 5, 2025
1 check passed
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.

2 participants