I am using Spring Boot, Maven, Hibernate and MySQL
I am trying determine if is better to programmatically find out if a record already exist in the database --> table or if is better to do that by modifying the database table to not allow duplicates.
Any suggestions?