Skip to content

proper SQLmodel approach for Many to Many subqueryLoad #1508

Discussion options

You must be logged in to vote

I believe the approach with SQLModel is the same as with plain SQLAlchemy here.
So, your solution is valid.

I would only consider using selectinload instead of subqueryload if there are no specific requirements that prevent you from that

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #135 on August 13, 2025 07:18.