Ecto helpers to find_or_create(_by) and upsert(_by)

Doesn’t the code have a race condition if the user is inserted by some other process between the initial find and the insert?

3 Likes