Search code examples
javaapigraphorientdbnosql

What are these [size=40] tags in orientdb


I have been working on a project and I have made 215 edges originating from a single vertex toward a different vertices of a different class however when I use Java API (Graph API) to get edges it comes to 40 only. Please help image here


Solution

  • So I think I have figured the solution for this problem. Basically I had 2 loops first one for iterating towards the vertices and the second one to make several edges for each vertices. Now I was using graph.commit() after every edge insertion earlier. Now I decided to commit after every vertex is done, that is I reduced the commit frequency from n^2 to n. This solved the problem and I has able to add and retrieve all the edges.