In OrientDB, we created 2 different APIs: Document API and Graph API. The Graph API works on top of the Document API. The Document API contains the Document, Key/Value and Object Oriented models.
YOU, THE USER
|| ||
_||_ ||
\ / ||
\/ _||_
+-------------+ \ /
| Graph API | \/
+-------------+-----------------+
| Document API |
+-------------------------------+
| Key/Value and Object Oriented |
+-------------------------------+
With OrientDB 2.0, we improved our Graph API to support all models in just one Multi-Model API. This API usually covers 80% of use cases, so this could be the default API you should use if you're starting with OrientDB.
In this way:
MOVE VERTEX
command to refactor your graph with no broken LINKs. For more information how Edges are managed look at Lightweight Edges.What about the remaining 20%? In the case where you need a Document Database (keeping the additional OrientDB features, like LINKs) or you come from the Document Database world, using the Document API could be the right choice.
These are the Pros and Cons: