Re:I just released an eBook about exceptions and failure han...
by zizzler on Wednesday May 04, 2011 @11:06AM
(#2514045)
Bought the book, found out Ruby has retry. Money well spent.
[ Parent
| on HN ]
Re:I just released an eBook about exceptions and failure han...
by bstar on Wednesday May 04, 2011 @12:34PM
(#2514347)
Thanks zizzler, now I don't need to buy the book ;-)
Re:I just released an eBook about exceptions and failure han...
by codenerdz on Wednesday May 04, 2011 @01:02PM
(#2514444)
Wow, the timing could not be more perfect as Im trying to deal with a validate_uniqueness race condition :)
Re:I just released an eBook about exceptions and failure han...
by tomfakes on Wednesday May 04, 2011 @06:14PM
(#2515509)
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