---
title: "Discussion on \"Where to enforce the uniqueness of your data\" | Hashnode"
description: "Discussion on \"Where to enforce the uniqueness of your data\". Background\nHere you are, want to enforce a constraint such as any new record must have a unique name, title, etc, but you are not sure where to enforce it exactly. application level or DB level?\nApplication level vs database level\nFor me having your ..."
url: "https://hashnode.com/posts/where-to-enforce-the-uniqueness-of-your-data-application-level-vs-database-level/63aff2b49aad16e7d3d7cab4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Where to enforce the uniqueness of your data](https://blog.amr-hassan.xyz/where-to-enforce-the-uniqueness-of-your-data-application-level-vs-database-level?utm_source=hashnode&utm_medium=feed)

Background Here you are, want to enforce a constraint such as any new record must have a unique name, title, etc, but you are not sure where to enforce it exactly. application level or DB level? Application level vs database level For me having your ...

Dec 31, 2022 · 2 min read · blog.amr-hassan.xyz  
Read the article

-   [#databases](https://hashnode.com/tag/databases)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

[Amr Hassan](https://hashnode.com/@AmrHassan)

@AmrHassan

  
[View profile](https://hashnode.com/@AmrHassan)

Software engineer

A recovering perfectionist, and a tech lover. Talks about tech staff most of the time. Love cycling and watching movies/Anime.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
