infiniflow / infiniflow/infinity
[Feature Request]: Support UNIQUE / PRIMARY KEY and Upsert
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 445
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for the same feature request?
- [x] I have checked the existing issues.
### Is your feature request related to a problem?
```Markdown
```
### Describe the feature you'd like
Infinity currently does not support user-defined unique constraints or primary keys.
This makes it hard to guarantee uniqueness of business keys (e.g., `resume_id`) and to perform upserts.
### Describe implementation you've considered
_No response_
### Documentation, adoption, use case
```Markdown
```
### Additional information
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by locating the database schema and write-path code related to user-defined UNIQUE constraints, PRIMARY KEY constraints, and upserts. Done should include supported constraints and upsert behavior, with tests covering uniqueness and conflict handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100