Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[需求]支持节点的多字段主键 #854

Open
sonicgemini opened this issue Feb 13, 2025 · 0 comments
Open

[需求]支持节点的多字段主键 #854

sonicgemini opened this issue Feb 13, 2025 · 0 comments

Comments

@sonicgemini
Copy link

在一般的领域建模中,很多时候只聚焦业务字段,比如手机的类型节点,手机类型+具体版本(可能是个数字)就是一个逻辑主键;但当前Tugraph中在进行建模时,由于不支持多字段主键,就得再增加一个虚拟的定义(比如PhoneTypeId)字段作为主键。

问题是这个字段只要出现了,业务上是不使用的,但在insert节点数据时却需要显式给值,而且还得规划不一定的值。

由于当前TG也没有类似get_next_new_id这种函数可以有状态地获取到最新分配的Id,造成数据入图还得依赖client端的一定的代码逻辑(为了凑、或者分配Id)

所以,诉求是,后续能否增加多字段主键的支持。

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

No branches or pull requests

1 participant