当我尝试同时从节点删除两个不同的关系时,出现此错误。{ [Error: LockClient[402733] can't wait on resource RWLock[RELATIONSHIP(201056), hash=1039491204] since => LockClient[402733] <-[:HELD_BY]- RWLock[NODE(131064), hash=949197283] <-[:WAITING_FOR]- LockClient[402732] <-[:HELD_BY]- RWLock[RELATIONSHIP(201056), hash=1039491204]] message: 'LockClient[402733] can\'t wait on resource RWLock[RELATIONSHIP(201056), hash=1039491204] since => LockClient[402733] <-[:HELD_BY]- RWLock[NODE(131064), hash=949197283] <-[:WAITING_FOR]- LockClient[402732] <-[:HELD_BY]- RWLock[RELATIONSHIP(201056), hash=1039491204]' }
这是预期的吗?如何避免这种情况?
最佳答案
如果您的代码使用一致的删除顺序(例如,按节点/关系ID。