graph databases - Duplicate Vertices and Edges in OrientDB -


i making code fetch data remote database , store in orientdb server. example if vertex not present should created else should overwritten. similar support needed edges. using java api this(graph api) . can tell me best method this.thanks advance.

i found easy way this:

iterable<vertex> vv=graph.getvertices("name", "c++"); iterator it=vv.iterator(); if(it.hasnext())  {    result="exists";  } else    result="not exists"; 

it checks iterator size.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -