Hacker News new | ask | show | jobs
by codenerdz 5532 days ago
Wow, the timing could not be more perfect as Im trying to deal with a validate_uniqueness race condition :)
2 comments

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...