I have run a session of gremlin server for a tinker graph.
gremlin.graph=org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph
gremlin.tinkergraph.vertexIdManager=LONG
gremlin.tinkergraph.graphLocation=data/db.kryo
gremlin.tinkergraph.graphFormat=gryo
During the session, I have created many vertex and edges. At the moment, when I reached 180k vertex and 350k edges, the server showed a poor performance. It couldn't perform a simple query for instance, :> g.V(999).values('name')
.
Moreover, when I closed the server, it did not successfully write the contents to the graphLocation=data/db.kryo
, as defined above. So I lost all information about 180k vertex and 350k edges created so far.
I am wondering about the capacity of TinkerGraph and gremlin server:
- How many edges, vertex, and size of a graph can it handle?
- Is there any way to avoid the loss of data while closing server and writing content to a file?
- Should I consider using a not in-memory graph? For instance, neo4j.