Skip to content

AsyncSession refresh throws exception #6251

Answered by zzzeek
ljiatu asked this question in Usage Questions
Discussion options

You must be logged in to vote

I guess not, because the selectinload operation has already fired off and isn't going to associate itself with obj_a after the load.

I will give you a hint, just dont use expire or refresh especially in asyncio. If you want to reload a bunch of objects, use populate existing. it does just what you want refresh to be doing and you can set whatever loader options you want, and as a bonus it wont expire things either.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@zzzeek
Comment options

@ljiatu
Comment options

@zzzeek
Comment options

@zzzeek
Comment options

@ljiatu
Comment options

Answer selected by ljiatu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants