Is there anyway to list all partition keys with gremlin API? I knew that I can create a PartitionStrategy while creating a graph. However, how can I know which partitions already have in a graph?
In the context of PartitionStrategy
, there are only two ways to know what partitions are in the graph:
g.V().values("nameOfYourPartitionKey").dedup()
Obviously, the second approach listed above could be very expensive since it is a global traversal. For especially large graphs you may need to use an OLAP-style traversal with SparkGraphComputer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With