Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cypressbit opened this issue Sep 27, 2021 · 3 comments
Labels
feature Describes a new feature

Comments

@cypressbit
Copy link

cypressbit commented Sep 27, 2021

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?

@ashutoshsoni891
Copy link

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

@AntonLydike AntonLydike added the feature Describes a new feature label Sep 16, 2022
@AntonLydike AntonLydike changed the title Is there a way to connect multiple instances to a node? Allow bulk processing of RelationshipManager calls such as connect() and disconnect() Sep 16, 2022
@AntonLydike
Copy link
Contributor

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

@vishnu-dev
Copy link

vishnu-dev commented Jan 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Describes a new feature
Projects
None yet
Development

No branches or pull requests

4 participants