Daily Archives: 29/09/2008

Aside

find_or_create_by_<nnn>: think twice. before you race The usually recommended way to create an item if it doesn’t exist already is by using find_or_create_by… This, however, comes with a race condition built in. Which doesn’t always race, so think twice when … Continue reading