infiniflow / infiniflow/infinity

[Feature Request]: Support UNIQUE / PRIMARY KEY and Upsert

Open
#3,074 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.