Use the multimode database

66 views
Skip to first unread message

Giovanni Adobati

unread,
Apr 15, 2015, 12:58:43 PM4/15/15
to orient-...@googlegroups.com
Hi,

Just a question:

Is it possible to use orientDB Creating both Grafh ( Vertex ) object and Document object ?

If yes what is the difference on creating a graph db and a document db ?

Thanks

Colin

unread,
Apr 15, 2015, 2:50:32 PM4/15/15
to orient-...@googlegroups.com
Hi Giovanni,

The short answer is yes.  But how are you creating the vertex and document objects, through SQL, through the Java API?

The OrientDB graph database has some predefined classes for creating vertices and edges but is essentially the same for the document database.  You can easily add documents to the "graph database".

-Colin

Orient Technologies

The Company behind OrientDB

Giovanni Adobati

unread,
Apr 22, 2015, 11:28:22 AM4/22/15
to orient-...@googlegroups.com
Hi Colin,

Thanks for the answer, i read it just now.

I'm doing some tests, ad the moment i use mysql in a crm like application using jpa.

So if i understand correctely i could use a graph db to store social like data and use document object to store crm like data.

Thanks

Colin

unread,
Apr 22, 2015, 2:29:57 PM4/22/15
to orient-...@googlegroups.com
Hi Giovanni,

You can actually treat a vertex object like a document object in that with a vertex you set properties as opposed to fields with the document object.

Really, it comes down to the API you're using and if you wish to mix them.  You can use the Blueprints API with the Graph vertex objects and also just store your document data as a vertex too.  A vertex object in the database is derived from the V class, whereas, the document object is not.  Note that both can be derived from your own class as well.

Good luck!

-Colin

Giovanni Adobati

unread,
Apr 23, 2015, 1:13:46 PM4/23/15
to orient-...@googlegroups.com
Hi Colin.

Thanks for your help.



--

---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/FSlRsyN3mlY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages