Hacker News new | ask | show | jobs
by hyzyla 1431 days ago
I expected to find that solution in article. Or if someone doesn’t like triggers, you can just insert row in associated table, if failed with duplication error, then do nothing, otherwise increase counter.