-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
adding vertex with custom id? #45
Comments
Once the database is initialized using this "graph.set-vertex-id=false", which is the default, you can't set the IDs. What I had to do was to create a "shadow" ID property to store that ID, so I'd traverse that shadow first, if exists I use that, otherwise just use the vertex.id() value. I had to create my own GraphReader to traverse first, update if found, if not create and set the shadow so I could use it... Now I have an overhead to traverse instead of just going straight to the ID itself using indexes. |
#148 has been merged which restores support for custom Long vertex ids in JanusGraph. Note that only Long ids are supported and they must be converted to valid JanusGraph ids for use in |
When g.addV(), there are no way to specify the id. The id is auto-generated.
Is it possible to specify the id directly? We have UUID for all entities. Avoiding another redirection will save the extra index on UUID.
The text was updated successfully, but these errors were encountered: