Unable to Use Custom Long IDs in JanusGraph: Validity Constraints and Workarounds #4738
-
I'm working with JanusGraph and encountering challenges when attempting to use custom Long-type IDs for vertices. Here's a detailed breakdown of my situation:
Any insights, recommendations, or best practices to resolve these ID-related challenges in JanusGraph would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Please, check the following limitations: https://docs.janusgraph.org/advanced-topics/technical-limitations/#size-limitation When you are creating your Long vertex ID you should follow the following rules:
You was trying to use value I believe we should clarify this in documentation. |
Beta Was this translation helpful? Give feedback.
Please, check the following limitations: https://docs.janusgraph.org/advanced-topics/technical-limitations/#size-limitation
When you are creating your Long vertex ID you should follow the following rules:
graph.getIDManager().toVertexID(123L)
to convert your vertex ID into the internal vertex id type. (see documentation).(2^60)/2
. In other words, you can create up to 576 quadrillion vertices and up to 1.1 quintillion edges.You was trying to use value
9223372036854775805
which is larger then576460752303423488
. Try to use smaller values in range0
to576460752303423488
for vertex ids.I believe we should clarify this in …