ontap-rest-python icon indicating copy to clipboard operation
ontap-rest-python copied to clipboard

netapp_ontap packages take 20+ seconds to load

Open paullam328 opened this issue 1 year ago • 2 comments

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?

paullam328 avatar Dec 18 '24 19:12 paullam328

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.

github-actions[bot] avatar Dec 18 '24 19:12 github-actions[bot]

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)

paullam328 avatar Dec 18 '24 20:12 paullam328