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

[master] Clone batchQuery to allow for proper nested lazy instantiation #2367

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sheikah45
Copy link
Contributor

@Sheikah45 Sheikah45 commented Feb 17, 2025

Closes #1998

This PR changes the execution of the batchQuery to utilize a clone for actual execution of the batch fetching. Without the clone it was possible that further batches would overwrite the DataResults of the original batchQuery. These DataResults were then used by the various BatchValueHolders to instantiate the values lazily. However when overwritten the referenced rows had the possibility of not existing in the policy as only the most recently executed batch was present. This could lead to incorrect results being returned.

Once this is reviewed I will back port it.

@Sheikah45 Sheikah45 marked this pull request as draft February 17, 2025 20:12
@Sheikah45 Sheikah45 marked this pull request as ready for review February 17, 2025 21:35
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.

BatchFetch IN corrupts cache by overwriting BatchFetchPolicy dataResults
1 participant