You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried appending to a m2m association inside a concurrent goroutines and for some reason it appended only some of the data.
While creating a minimal code example to test this i narrowed it down to this:
When the model is fetched from the db(previously created) & the associations are preloaded(Preload(clause.Associations)), it fails.
If any of this changes the test passes(note the comments in the code)
The text was updated successfully, but these errors were encountered:
GORM Playground Link
go-gorm/playground#534
Description
I tried appending to a m2m association inside a concurrent goroutines and for some reason it appended only some of the data.
While creating a minimal code example to test this i narrowed it down to this:
The text was updated successfully, but these errors were encountered: