One row, many threads: How to avoid database duplicates in Rails applications | Hacker News Reader