so rails has added another race-condition-having insert API to replace its existing race-condition-having insert API further material for the article I'm working on about how the type { read() -> T, write(T) } cannot possibly provide consistency
-
-
I know that, but create_or_find is also racy, and its own docs say as much, so I'm confused about why it's been added if I wanted consistency I wouldn't use either of these APIs
-
I am definitely not advocating that `create_or_find` is a good API. I argued against adding it at the time. For real improvement to happen though, I think Rails needs to:
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.