Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify unique constraint for documents (#1098)
This commit refined the project's document indexing strategy to accommodate unique key constraints while handling soft deletions. Previously, this was solved by applying partial index and unique constraint, but partial index could not be used when sharding. By adding the `removed_at` field into the uniqueness check, we now ensure only one active document exists at a time.
- Loading branch information