In your comments you mentioned you were using "tinkerpop" as your graph database. TinkerPop by itself isn't a graph database. I'll assume you meant TinkerPop's graph database implementation TinkerGraph. It makes sense that your data is lost if using TinkerGraph because it is a in-memory graph database. You can persist that data if you like but you have to tell TinkerGraph to do so.
You will need to add gremlin.tinkergraph.graphLocation
and gremlin.tinkergraph.graphFormat
configurations to TinkerGraph. I assume you are using Gremlin Server since you use .NET so you likely just need to add those settings to the conf/tinkergraph-empty.properties
file (assuming you've left the default file naming and out-of-box configuration).
That said, TinkerGraph is really meant to be an in-memory graph. Persisting data to disk is a bit of a convenience for users and not meant for high transaction use cases. You should consider other TinkerPop-enabled graph databases to configure in Gremlin Server for those situations (like JanusGraph) or perhaps use a service like Amazon Neptune. The fully listing of available graphs you can use with TinkerPop can be found on the TinkerPop project home page.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…