Neo4j清空数据

https://blog.csdn.net/u012485480/article/details/83088818

一、用下列 Cypher 语句:
match (n) detach delete n
二、
1、停掉服务;
2、删除 graph.db 目录;
3、重启服务。

对于少量数据,第一种方案是很方便的,但是数据量大的时候很慢,而且容易造成内存溢出,毕竟是先查出来再删除,这个时候就应该用第二种方案了,方便,快速。
 

猜你喜欢

转载自blog.csdn.net/NRlovestudy/article/details/88411043