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

netapp_ontap packages take 20+ seconds to load #49

Open
paullam328 opened this issue Dec 18, 2024 · 2 comments
Open

netapp_ontap packages take 20+ seconds to load #49

paullam328 opened this issue Dec 18, 2024 · 2 comments

Comments

@paullam328
Copy link

paullam328 commented Dec 18, 2024

print("1. Loading onTAP dependencies...")
from netapp_ontap import NetAppRestError
from netapp_ontap.resources import Volume
from netapp_ontap.resources import Aggregate
from netapp_ontap.resources import Node

from netapp_ontap import config, HostConnection
print("Time taken: " + str(time.time() - start))

Output:

1. Loading onTAP dependencies
Time taken: 21.128556728363037

21 seconds to load the dependencies. Am I missing something?

Copy link

Thank you for reporting an issue! If you haven't already joined our Discord community,
then we invite you to do so. This is a great place to get help and ask questions from our community.

@paullam328
Copy link
Author

And also, a lot of operations (i.e., fetching all nodes/aggregates/volumes) seem to be much slower than ontap_rest_api itself (performing all those at once in ontap_python_api took upwards to 150 seconds, whereas by just using ontap_rest_api, it took around 20 seconds)

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

No branches or pull requests

1 participant