Search code examples
orientdb

How to choose between Links and Edges to connect vertices?


In orientDB, we have links and edges to connect vertices. I can't find out what the cons/pros of each of them on the orientdb documentation.

Forum Example - three entities involved: Author, Message, Forum.

An author writes a message in a forum. - Option one: message is an edge between Author and Forum vertices - Option two: Message has a link to Author and another link to Forum

In other words, what strategy to choose and why?


Solution

  • If you don't have properties on your arch you can use a link, instead if you have it use edges.