Skip to content

Commit

Permalink
fix(server): switch rocksdb backend to memory when executing gremlin …
Browse files Browse the repository at this point in the history
…example (#2518)
  • Loading branch information
VGalaxies authored Apr 12, 2024
1 parent 1228dec commit 3783247
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ import org.apache.hugegraph.dist.RegisterUtil
import org.apache.hugegraph.masterelection.GlobalMasterInfo
import org.apache.tinkerpop.gremlin.structure.T

RegisterUtil.registerRocksDB()
RegisterUtil.registerBackends()

conf = "conf/graphs/hugegraph.properties"
conf = HugeFactory.getLocalConfig("conf/graphs/hugegraph.properties")
conf.setProperty("backend", "memory")
conf.setProperty("serializer", "text")
graph = HugeFactory.open(conf)
graph.serverStarted(GlobalMasterInfo.master("server-tinkerpop"))
schema = graph.schema()
Expand Down

0 comments on commit 3783247

Please sign in to comment.