apache / apache/incubator-seata

Saga状态机实例表为什么不用自增id作为主键?

Open
#3,769 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

![image](https://user-images.githubusercontent.com/31987529/119758432-1ede5500-bed9-11eb-80b4-da46fbd05965.png)

请问下这两张表为什么不用自增id作为主键?

Contributor guide

Open the contributing guide

Research direction

The issue only provides an image of two Saga state-machine tables and asks why they do not use an auto-incrementing primary key; no files, tests, or entry points are named. Start by locating the corresponding schema definitions and confirm the intended primary-key rationale with maintainers. Done would require a documented explanation or a clearly agreed schema change.

Written by the indexing model from the issue text.

Assessment

Domain
databases, distributed-systems
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.