Skip to content

feat: let the database check the unique values - #22

Merged
azmeuk merged 1 commit into
mainfrom
unique-constraints
Nov 30, 2026
Merged

azmeuk merged 1 commit into
mainfrom
unique-constraints

Conversation

@azmeuk

@azmeuk azmeuk commented Nov 30, 2026

Copy link
Copy Markdown
Member

The storage no longer searches for a unique value before a write. A unique constraint refuses it when the storage flushes the write, so two concurrent writes cannot take the same value. The 409 tells the attribute, but never the value.

comparison_key gives the expression of a unique column for an attribute that ignores the case. The storage warns about a unique attribute that no constraint covers. generate_mappings gives each unique attribute a unique constraint. Values and identifiers are no longer checked across resource types.

The storage no longer searches for a unique value before a write. A unique
constraint refuses it when the storage flushes the write, so two concurrent
writes cannot take the same value. The 409 tells the attribute, but never
the value.

comparison_key gives the expression of a unique column for an attribute
that ignores the case. The storage warns about a unique attribute that no
constraint covers. generate_mappings gives each unique attribute a unique
constraint. Values and identifiers are no longer checked across resource
types.
@read-the-docs-community

Copy link
Copy Markdown

@azmeuk
azmeuk enabled auto-merge November 30, 2026 08:19
@azmeuk
azmeuk merged commit 42e4f2f into main Nov 30, 2026
11 checks passed
@azmeuk
azmeuk deleted the unique-constraints branch November 30, 2026 08:29
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