I\'m currently iterating over an array where each index contains two nodes and a relationship (Part_1 -> Part_2), and I\'m using the Neo4jTemplate.save() method to persist i
It's hard to suggest what to change without seeing your code, but it sounds like you're saving new entity instances every time.
The entity passed to Neo4jTemplate.save(entity)
should be updated with an ID once it's been written to the database. SDN will try to update nodes that already have an ID so I'd suggest re-using entity instances instead of creating new ones.
If you don't want to manage these entities yourself, you could attempt to load entities in step 1 and then only create them if they don't already exist.