Skip to content

Async Many-To-Many not yielding all joined rows on subsequent selects #11489

Discussion options

You must be logged in to vote

hi -

you have "noload" turned on. This will populate relationships with empty lists as you see. your selectinload does not take effect on the second run because those Book objects are already loaded, with their no-loaded blank list.

"noload" is a feature that never should have been added to SQLAlchemy, it has no legitimate uses, and I would turn it off to solve this problem.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lukasmetzner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants