titan - performannce tuning in local dynamodb of titangraph -
thank reading this
my system configuration follows
processor : intel® pentium(r) cpu g2020 @ 2.90ghz × 2
o.s : ubuntu 16.04 lts
o.s type : 64-bit
r.a.m : 5.5 gib
i have use titan 1.0.0 gremlin query 3.0.1-incubating. have code defines child count of having 10000 verticex created binary tree having edges
code ->
`
baseconfiguration conf = new baseconfiguration();
conf.setproperty("storage.backend", "com.amazon.titan.diskstorage.dynamodb.dynamodbstoremanager"); conf.setproperty("storage.dynamodb.client.endpoint", "http://localhost:4567"); conf.setproperty("storage.batch-loading ", "true"); conf.setproperty("storage.buffer-size", "10000"); conf.setproperty("query.fast-property", "true"); conf.setproperty("storage.buffer-size","65536"); conf.setproperty("cache.db-cache", "true"); conf.setproperty("cache.db-cache-time ","50"); conf.setproperty("cache.db-cache-size ","0.15"); conf.setproperty("storage.directory","/tmp/foo"); conf.setproperty("index.search.backend", "elasticsearch"); conf.setproperty("index.search.directory", "/tmp/searchindex"); conf.setproperty("index.search.elasticsearch.client-only", "false"); conf.setproperty("index.search.elasticsearch.local-mode", "true"); long q = system.currenttimemillis(); titangraph graph = titanfactory.open(conf); system.out.println("titan graph open"); system.out.println("time= "+ (system.currenttimemillis()-q)); titanmanagement mgmt = graph.openmanagement(); system.out.println(graph); graphtraversalsource g = graph.traversal(); system.out.println(g); vertex fromnode = g.v().has("nodeid", 0).next(); system.out.println("node calculating child nodes : " + fromnode.property("nodeid")); long st = system.currenttimemillis(); system.out.println(g.v(fromnode).repeat(out("childs").dedup()).emit().count().next()); system.out.println("time : " + (system.currenttimemillis() - st) + " milliseconds"); graph.close(); system.exit(0);`
it takes 41 minutes parameters change or add in decrease in read time occurs in time
thank once again , sincerely hope solve problem...!
Comments
Post a Comment