Skip to content
Discussion options

You must be logged in to vote

I stumbled upon this thread and I have solved a similar issue with merge(). I'm not sure if this is really the same problem but I guess it doesn't hurt to mention it here. Note that merge() comes with its own drawbacks as written below under "Merge Tips".

basically replace add() with merge().
See: https://docs.sqlalchemy.org/en/20/orm/session_state_management.html#merging

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@nick-catalist
Comment options

@YuriiMotov
Comment options

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
5 participants