Skip to content

feat: rely on the unique constraints of the database - #30

Merged
azmeuk merged 1 commit into
mainfrom
database-uniqueness
Nov 30, 2026
Merged

azmeuk merged 1 commit into
mainfrom
database-uniqueness

Conversation

@azmeuk

@azmeuk azmeuk commented Nov 30, 2026

Copy link
Copy Markdown
Member

The storage no longer looks for a unique value before each write. The unique constraints of the database refuse it, even under concurrent writes, and the storage turns their refusal into a 409 telling the attribute. ComparisonKey builds the generated field that ignores the case, and manage.py check refuses a unique attribute without constraint (E013).

The storage no longer looks for a unique value before each write. The
unique constraints of the database refuse it, even under concurrent
writes, and the storage turns their refusal into a 409 telling the
attribute. ComparisonKey builds the generated field that ignores the
case, and manage.py check refuses a unique attribute without constraint
(E013).
@azmeuk
azmeuk enabled auto-merge November 30, 2026 08:19
@azmeuk
azmeuk merged commit 524faf1 into main Nov 30, 2026
15 checks passed
@azmeuk
azmeuk deleted the database-uniqueness branch November 30, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant