For our custom cypher procedures we would have a significant boon in performance if the order of Labels on Nodes would be guaranteed. For example, lets say we have the following labels:
Animal, Cat, Dog
We would want the most specific label to occur first for a Dog:
Dog, Animal
And same for a Cat:
Cat, Animal
We have found already that we could be making dummy nodes in the database, as it seems like the order of the labels is determined by the order at which the labels are created. But we are wondering:
- Is this the correct way to do this? It seems like a hack, so to say or,
- Is there a more efficient way to do this without creating dummy nodes.
Cheers,
Boyen van Gorp