Hacker News new | ask | show | jobs
by zizzler 5532 days ago
Bought the book, found out Ruby has retry. Money well spent.
2 comments

Thanks zizzler, now I don't need to buy the book ;-)
Wow, the timing could not be more perfect as Im trying to deal with a validate_uniqueness race condition :)
validate_uniqueness is a system that is completely broken once you have more than 1 ruby process running against the same database. It just can't work the way you want it to.

You must add constraints to the database and handle the resulting exceptions to ensure unique values.

They really need to kill validate_uniqueness since it is so totally broken

P.S. Just for that, im buying the book...