2020-05-08から1日間の記事一覧

It seems better to have a Unique constraint on the database side when guaranteeing the uniqueness of data

Hello. I am Toyonaga from Rakuma. I continue to hit against the wall with competitive programming. When do you make a Unique constraint on a database? I had a conversation like this with my senior in the past. This is the scene where I was…

データの一意性を保証するとき、データベース側で Unique 制約をつけた方が良さそうな件

こんにちは。競プロで壁に跳ね返され続けているラクマの豊永です。 みなさんは、どんなときにデータベースに Unique 制約をつけるでしょうか。 私は過去に先輩とこんなやりとりをしたことがあります。 開発で新規追加するテーブル設計のレビューを受けている…