0

我正在使用rdb 将我的 rdb 转移到 neo4j 2.0.3 。一开始,我的每个传输查询过去花费的时间非常少,但现在(graphml 文件的大小约为 1.3gbs)插入需要 3-5xtime 并且经常为某些查询抛出此错误。

org.neo4j.server.rest.repr.RepresentationExceptionHandlingIterable.exceptionOnHasNext(RepresentationExceptionHandlingIterable.java:50)
org.neo4j.helpers.collection.ExceptionHandlingIterable$1.hasNext(ExceptionHandlingIterable.java:46)
org.neo4j.helpers.collection.IteratorWrapper.hasNext(IteratorWrapper.java:42)
org.neo4j.server.rest.repr.ListRepresentation.serialize(ListRepresentation.java:71)
org.neo4j.server.rest.repr.Serializer.serialize(Serializer.java:75)
org.neo4j.server.rest.repr.MappingSerializer.putList(MappingSerializer.java:61)
org.neo4j.server.rest.repr.CypherResultRepresentation.serialize(CypherResultRepresentation.java:83)
org.neo4j.server.rest.repr.MappingRepresentation.serialize(MappingRepresentation.java:41)
org.neo4j.server.rest.repr.OutputFormat$1.write(OutputFormat.java:160)
org.neo4j.server.guard.GuardingRequestFilter.doFilter(GuardingRequestFilter.java:68)
org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112)
org.neo4j.server.guard.GuardingRequestFilter.doFilter(GuardingRequestFilter.java:68)
java.lang.Thread.run(Thread.java:745)

org.neo4j.kernel.guard.Guard$Timeout.check(Guard.java:132) org.neo4j.kernel.guard.Guard.check(Guard.java:43) org.neo4j.kernel.InternalAbstractGraphDatabase$5.getNodeByIdOrNull(InternalAbstractGraphDatabase .java:745) org.neo4j.kernel.impl.core.NodeManager.getNodeById(NodeManager.java:301) org.neo4j.kernel.InternalAbstractGraphDatabase.getNodeById(InternalAbstractGraphDatabase.java:1121) org.neo4j.cypher.internal.spi .v2_0.TransactionBoundQueryContext$NodeOperations.getById(TransactionBoundQueryContext.scala:157) org.neo4j.cypher.internal.spi.v2_0.TransactionBoundQueryContext$$anonfun$getNodesByLabel$1.apply(TransactionBoundQueryContext.scala:131) org.neo4j.cypher.internal .spi.v2_0.TransactionBoundQueryContext$$anonfun$getNodesByLabel$1.apply(TransactionBoundQueryContext.scala:131) org.neo4j.cypher.internal.helpers。JavaConversionSupport$$anon$2.next(JavaConversionSupport.scala:33) scala.collection.Iterator$$anon$11.next(Iterator.scala:328) scala.collection.Iterator$$anon$13.next(Iterator.scala:372) scala.collection.Iterator$$anon$14.hasNext(Iterator.scala:389) scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371) scala.collection.Iterator$$anon$14.hasNext(Iterator. scala:388) scala.collection.Iterator$class.foreach(Ite​​rator.scala:727) scala.collection.AbstractIterator.foreach(Ite​​rator.scala:1157) scala.collection.generic.Growable$class.$plus$plus$eq (Growable.scala:48) scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:176) scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:45) scala .collection.TraversableOnce$class.to(TraversableOnce.scala:27​​3) scala.collection.AbstractIterator.to(Iterator.scala:第1157章 难怪

我通过遍历每行rdb并为电影(如果不存在)及其相关标签(如果不存在)创建节点,然后在它们之间创建关系以及类似的此类操作,将电影数据从rdb导入neo4j。

如何使性能更好并解决此错误?

这是我的neo4j-wrapper.conf

在搜索时,我登陆了http://docs.neo4j.org/chunked/stable/configuration.html,它提供了详细的性能和配置提示。但一开始似乎很复杂。为了更好的性能,有什么可做和不应该使用neo4j 和 ruby​​ 的。

请帮帮我。

4

1 回答 1

0

这为扩大规模提供了一个很好的背景......

http://maxdemarzi.com/2013/11/25/scaling-up/#more-2263

于 2014-06-30T22:46:13.050 回答