Hi Christian. If you want OrientDB to manage your links between the vertices, then yes, you'll need to use the Graph API to create edges and add them to the vertices.
If you want to manage them yourself, then the Document API will work fine by maintaining the links yourself. Have you looked at the time-series example in the documentation? It might give you some ideas, if you haven't. http://www.orientechnologies.com/docs/last/orientdb.wiki/Time-series-use-case.html If you do switch to the Graph API, you can use the OrientGraphFactory, which includes pools. Once you have an OrientGraph object you can always call graph.getRawGraph() to gain access to the underlying document database. -Colin Orient Technologies The Company behind OrientDB On Thursday, March 5, 2015 at 8:49:30 AM UTC-6, Christian C wrote: > > I have used the Document API to insert all my Vertex (all classes are > extending V). Now I want to model relations ships with a valid period of > time. Lets say "Person" -> is living {from : 2000-01-01, to : 2012-04-06} > -> London. What is the right option for me to add such a relationship > (edge). I am using OPartitionedDatabasePoolFactory right now. But I have no > Idea how to add Edges. Do I have to swicht to graph API? And if so how can > I do this - I mean reopening another connection pool is not the best option > right? > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
