neomodel icon indicating copy to clipboard operation
neomodel copied to clipboard

Allow bulk processing of RelationshipManager calls such as connect() and disconnect()

Open cypressbit opened this issue 4 years ago • 3 comments
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?

cypressbit avatar Sep 27 '21 21:09 cypressbit

Gi @cypressbit I am looking for the same functionality . Any alternative you found OR did you get any solution

ashutoshsoni891 avatar Jan 31 '22 10:01 ashutoshsoni891

Such a feature is definitely on our roadmap, more updates will follow!

AntonLydike avatar Sep 16 '22 21:09 AntonLydike

@AntonLydike Any updates on this? Thanks a lot for the wonderful library.

vishnu-dev avatar Jan 02 '23 10:01 vishnu-dev