Why wear a seat belt if you are a good driver and you can save two seconds of your total travel time? A.
One of the most important lessons for a programmer is that he is a person and he makes mistakes. Worse, everyone who works on this code is also human.
Why is there a UNIQUE restriction? To protect the database from people making mistakes. Turning off your UNIQUE restriction says: "You donβt need to worry, Mr. DB, I will never give you data that does not correspond to my intentions."
What if something happens to your code so that your uniqueness check breaks? Your code now flushes duplicate records to the database. But if you had a UNIQUE constraint for this column, when your external code stopped working, you could get your queries.
You are a man. Accept this. Let the computer do its job and protect you from yourself.
source share