Skip to content

Conversation

@cristof
Copy link
Contributor

@cristof cristof commented Mar 17, 2025

Removed cached result just before loading eager joins. It should not impact direct eager loading.

The cached result ignored the difference between an eager loaded entity (Cat->human) and a call to a parent who also have the same eager loaded entity (Cat->parent(Cat)->human), in the case getting the last loaded value from (Cat->parent->cats).

I tried to remove this cache in another place, but it broke multiple eager loading tests (that tested for a limit of db calls). Didn't check if there is a larger impact, though.

Copy link
Contributor

@solomax solomax left a comment

Choose a reason for hiding this comment

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

LGTM!

@solomax solomax self-assigned this Mar 19, 2025
@solomax solomax merged commit f2520c0 into apache:master Apr 23, 2025
1 check passed
@solomax
Copy link
Contributor

solomax commented Apr 23, 2025

Thanks a lot @cristof , Thanks for your patch!

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