#ontap-rest-python - netapp_ontap packages take 20+ seconds to load

1 messages · Page 1 of 1 (latest)

narrow dirge
#

Code:
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?

narrow dirge
#

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)

prime berry
#

cannot reproduce:

1. Loading onTAP dependencies...
Time taken: 1.1378378868103027