paint-brush
Knowing Where and When to Enforce the Uniqueness of Your Databy@amrhassan
156 reads

Knowing Where and When to Enforce the Uniqueness of Your Data

by Amr Hassan2mJanuary 9th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Having your constraints on the DB level is a must, the database could be accessed from many places. Most databases do the uniqueness validation more efficiently so it's better to have it there. It's important to simplify your logic and make sure that the data integirty rules are set for all clients.
featured image - Knowing Where and When to Enforce the Uniqueness of Your Data
Amr Hassan HackerNoon profile picture
Amr Hassan

Amr Hassan

@amrhassan

Unlocking the secrets of efficient code with 6+ yrs exp. Join me on a journey to becoming a better engineer

About @amrhassan
LEARN MORE ABOUT @AMRHASSAN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Amr Hassan HackerNoon profile picture
Amr Hassan@amrhassan
Unlocking the secrets of efficient code with 6+ yrs exp. Join me on a journey to becoming a better engineer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite