This is an automated email from the ASF dual-hosted git repository.
yangjiaqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
The following commit(s) were added to refs/heads/master by this push:
new 3783247c7 fix(server): switch rocksdb backend to memory when executing
gremlin example (#2518)
3783247c7 is described below
commit 3783247c74dbfd9e4018247567c8f85eb7e27a86
Author: V_Galaxy <[email protected]>
AuthorDate: Fri Apr 12 16:32:08 2024 +0800
fix(server): switch rocksdb backend to memory when executing gremlin
example (#2518)
---
.../hugegraph-dist/src/assembly/static/scripts/example.groovy | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/hugegraph-server/hugegraph-dist/src/assembly/static/scripts/example.groovy
b/hugegraph-server/hugegraph-dist/src/assembly/static/scripts/example.groovy
index 12893b754..426b0b1cf 100644
--- a/hugegraph-server/hugegraph-dist/src/assembly/static/scripts/example.groovy
+++ b/hugegraph-server/hugegraph-dist/src/assembly/static/scripts/example.groovy
@@ -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()