Jaryl Sim
Oct 21, 2022

--

This is not right. You need both.

Validations are primarily you how present errors to users via your frontend, and also to enforce business logic. Secondarily, they also are the first line of defense in ensuring data integrity.

On the database, you still want to have constraints that guarantee to a higher degree data integrity from a DBA's perspective. However, it does not mean that you no longer need validations at the app level.

--

--

No responses yet