-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
-
None
-
EnVision Sprint 29, EnVision Sprint 30, EnVision Sprint 31
-
None
We made a conscious decision not to use transactions when creating accounts because it would be too slow. There are cases when user that don’t have account created in our database yet comes and performs operation that does many requests, this can lead to this error.
To workaround that, we should catch this error in GetOrCreateByIdentity and try again (just one time) to compensate that. Alternatively since we have caching now, we can use transaction actually. Or using ON CONFLICT statement from Postgresql.