Neo4j 2.0:在矩阵中匹配节点以创建关系
当我从浏览器控制台运行这个密码时,我得到一个Neo4j 2.0:在矩阵中匹配节点以创建关系,neo4j,Neo4j,当我从浏览器控制台运行这个密码时,我得到一个未知错误。我不知道如何解决这个问题 MATCH (s:ContactMembership) MATCH (contact:Contact {ContactId : s.ContactId}) MATCH (contactmembershiptype:ContactMembershipType {ContactMembershipTypeId : s.ContactMembershipTypeId}) MERGE (contact)-[:
未知错误
。我不知道如何解决这个问题
MATCH (s:ContactMembership)
MATCH (contact:Contact {ContactId : s.ContactId})
MATCH (contactmembershiptype:ContactMembershipType
{ContactMembershipTypeId : s.ContactMembershipTypeId})
MERGE (contact)-[:CONTACT_CONTACTMEMBERSHIPTYPE
{ContactId : s.ContactId, ContactMembershipTypeId : s.ContactMembershipTypeId}]->
(contactmembershiptype)
ContactMembership大约有52k个节点
联系人有42k
ContactMembershipType有6个
每个联系人可以有多个成员身份类型,因此可以有多个关系,但每个contactMembership节点都有一个contactid
我应该使用创建而不是合并吗??不确定如何获得有关未知错误的更多详细信息
尝试以下操作:
MATCH (s:ContactMembership),(contact:Contact {ContactId : s.ContactId}),
(contactmembershiptype:ContactMembershipType {ContactMembershipTypeId :
s.ContactMembershipTypeId})
WITH s,contact,contactmembershiptype
MERGE (contact)-[:CONTACT_CONTACTMEMBERSHIPTYPE
{ContactId : s.ContactId, ContactMembershipTypeId : s.ContactMembershipTypeId}]->
(contactmembershiptype)
原来未知错误
只是控制台窗口上的超时。在shell中运行该命令时,我可以看到它只需154秒就完成了
如果2.0浏览器控制台能更好地描述错误,比如“等待响应超时”,那就太好了 没有骰子。这与上面的查询完全相同,并返回相同的错误消息Unknown error
。我在上面的帖子中添加了一个屏幕截图。检查日志并尝试在neo4j shell中进行查询(通过旧的webadmin界面)以获得更好的错误报告。看起来该错误只是一个web浏览器超时错误。该过程完成(在惊人的154秒内)。看来我得分批做了。。。