Skip to content

SCB-1721 support unique index by key, label, domain and project#70

Closed
AngLi2 wants to merge 1 commit intoapache:masterfrom
AngLi2:uniqueId
Closed

SCB-1721 support unique index by key, label, domain and project#70
AngLi2 wants to merge 1 commit intoapache:masterfrom
AngLi2:uniqueId

Conversation

@AngLi2
Copy link
Contributor

@AngLi2 AngLi2 commented Jan 14, 2020

No description provided.

@AngLi2
Copy link
Contributor Author

AngLi2 commented Jan 14, 2020

MongoDB 的 MongoShake 支持文档级别 id 的并发,根据已有信息确定 unique id 可以解决同一信息的 kv 并发写入的问题。遗留两个改进点:

  1. 当前 labelId 貌似没有根据 label 信息全局 unique,需要 labelId 支持,kv id 才能 unique,就是 label数据一致性问题 #68 描述的问题
  2. 若此 unique id 方案生效,代码中可以将此 id 当成 kv 身份标识(当前需要获取组合信息作为身份标识),很多代码和业务逻辑可以改动优化

PTAL

@AngLi2 AngLi2 closed this Jan 14, 2020
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