Is there any efficient way to get all relationship types currently defined?
I know this works:
match ()-[r]-() RETURN DISTINCT TYPE(r)
But I guess this will consume significant time if the number of relationships is huge and there is no inherent indexing under the hood.