neomodel
neomodel copied to clipboard
Allow bulk processing of RelationshipManager calls such as connect() and disconnect()
trafficstars
I am gathering a list of node instances that need to be connected to a node, like this:
node = SomeNode.create_or_update(**properties)
instance_list = [item1, item2, item3, ...]
print("Connecting nodes")
for instance in instance_list:
try:
node.items.connect(instance)
except Exception as e:
print('Failed to connect instance', instance)
print(e)
However this takes a long time, is there a way to pass a list to the connect method to do a bulk operation?
Gi @cypressbit I am looking for the same functionality . Any alternative you found OR did you get any solution
Such a feature is definitely on our roadmap, more updates will follow!
@AntonLydike Any updates on this? Thanks a lot for the wonderful library.