Neo4j Spatial-如何删除节点 [英] Neo4j Spatial - How To Delete A Node

查看:172
本文介绍了Neo4j Spatial-如何删除节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已经成功创建了空间索引,创建了一个节点并将其添加到我的索引中,现在,我希望能够删除该节点(简单)并将其从空间索引中删除(不是那么容易).

Having successfully created a spatial index, created a node and added it to my index, I'd now like to be able to delete the node (easy) and remove it from the spatial index (not so easy).

在撰写本文时,文档未涵盖此内容.

At time of writing, the documentation does not cover this.

看着索引,我可以看到要清除的内容,但是在我简单的数据库上,我不确定这是要遵循的协议还是经验法则.

Looking at the index i can see what to clear up, but on my simple DB i'm not confident if this is a protocol to follow or just a rule of thumb.

我的节点(在索引内)是远离层根的两个"rtree"关系,如果建议的话,我可以清除这些关系.

My node (within the index) is two "rtree" relationships away from the root of the layer, which i can clean up, if advised to.

是否有一个API可以删除我的节点?

Is there an api to delete my node?

如果不是,一旦销毁图中的节点,这是否是整理索引的好模式?

If not, is this a good pattern to tidy up the index once i destroy the node in the graph?

谢谢.

推荐答案

是的,正确的做法是在删除节点后清理索引. PR将是最欢迎的!另外,请确保去除是幂等的(我相信它已经是).

Yes, cleaning the index after a node removal is the right thing to do. a PR would be most welcome! Also, make sure removal is idempotent (I believe it already is).

这篇关于Neo4j Spatial-如何删除节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆