-
Notifications
You must be signed in to change notification settings - Fork 0
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
Async psycopg driver throws errors when sqlalchemy lazy loads relationships #20
Labels
bug
Something isn't working
Comments
Should be rechecked after e9bdf66 |
Makcal
added a commit
that referenced
this issue
May 23, 2024
All relationships are removed out of harm's way. Honestly, they are nightmare. I don't know how to make them work properly (without tons of extra methods or attributes) with asynchronous DB drivers. |
Maybe use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Async psycopg driver throws errors (greenlet has not been spawned) when sqlalchemy lazy loads relationships.
Possible affect:
I suppose that due to
sa_relationship_kwargs={"lazy": "joined"}
used now large and redundant amounts of data are loaded through relations (i.e. user -> invitation -> other user -> other invitation -> ...).Known solutions:
The very last option is chosen
Reproduction
sa_relationship_kwargs={"lazy": "joined"}
from relationship definitionsScreenshots / Additional context
Some info
The text was updated successfully, but these errors were encountered: