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

Automatically generate string type vertex ID #2683

Closed
ConleyKong opened this issue Jan 26, 2021 · 2 comments
Closed

Automatically generate string type vertex ID #2683

ConleyKong opened this issue Jan 26, 2021 · 2 comments
Labels
community Source: who proposed the issue type/feature req Type: feature request

Comments

@ConleyKong
Copy link

目前的nebula的顶点ID都需要用户手动指定,2.0版本增加了字符串类型,但是需要用户自己来设定字符串长度并控制节点名称的长度,使用起来十分不方便,是否可以在用户层与nebula逻辑层中间加一个自动化的md5类型ID的计算逻辑,用户输入的可以是任意长度的字符串节点名称,经过md5映射后就是一个唯一的长度固定的32位id,从而实现了更便捷的操作和更有效的存储;另外对于用户操作可以将这个md5映射层透明掉,让用户对于这个id的指定后的存储类型无需手动管理

@yixinglu
Copy link
Contributor

yixinglu commented Feb 2, 2021

@CPWstatic CPWstatic transferred this issue from vesoft-inc/nebula-graph Aug 28, 2021
@CPWstatic CPWstatic added the type/feature req Type: feature request label Aug 28, 2021
@Sophie-Xie Sophie-Xie changed the title 关于字符串类型顶点ID自动生成的一个想法 Automatically generate string type vertex ID Sep 6, 2021
@Sophie-Xie Sophie-Xie added the community Source: who proposed the issue label Sep 13, 2021
@Sophie-Xie
Copy link
Contributor

Pls try to generate int64 VID via hash.

https://docs.nebula-graph.com.cn/2.5.0/1.introduction/3.vid/#vid_3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Source: who proposed the issue type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

4 participants