我现在有爬好数据的csv文件,需要导入neo4j形成节点。
但是这csv中有些数据是一样的(即形成的节点一模一样)
现在需要不导入重复的,或者导入后在neo4j中删除重复节点,如何做?
Neo.TransientError.General.OutOfMemoryError: There is not enough memory to perform the current task. Please try increasing 'dbms.memory.heap.max_size' in the neo4j configuration (normally in 'conf/neo4j.conf' or, if you you are using Neo4j Desktop, found through the user interface) or if you are running an embedded installation increase the heap by using '-Xmx' command line flag, and then restart the database.
删去节点不就好了,直接set()
内存不足,修改配置文件中的max_size即可。默认max_size是512M,如果删除节点关系数超过110w。就会出现内存不足的情况。
最好csv文件中就去重。
可以用python中的py2neo库来处理数据,生成节点。