<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Slow ONTAP API response in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Slow-ONTAP-API-response/m-p/106967#M1534</link>
    <description>&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That 10 seconds sounds a little high from previous experience, but might not be out of the realm of possibility depending on how much data is being pulled back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the python snippit you pasted below - is this the function that is being repeated &lt;STRONG&gt;once for each of the 400&lt;/STRONG&gt; volumes?&amp;nbsp; Or are you pulling the results of 'snapmirror-get-iter' &lt;STRONG&gt;one time&lt;/STRONG&gt; and then iterating through the resulting returned data?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2015 19:57:53 GMT</pubDate>
    <dc:creator>Datageddon</dc:creator>
    <dc:date>2015-07-02T19:57:53Z</dc:date>
    <item>
      <title>Slow ONTAP API response</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Slow-ONTAP-API-response/m-p/106828#M1531</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to pull snapmirror lag info from 400 individual volumes in our cluster, which is running release 8.2.1. &amp;nbsp;I can successfully get the data, but it's taking about 10 seconds per call for the API to return data from each volume. &amp;nbsp;This is way too slow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example of how&amp;nbsp;I'm doing it with python:&lt;/P&gt;&lt;PRE&gt;filer = NaServer(filer_name, 1, 6)
filer.set_admin_user('admin', password)
cmd = NaElement("snapmirror-get-iter")
options = NaElement("desired-attributes")
max_records = 400

# add options
cmd.child_add(options)
cmd.child_add_string("max-records", max_records)
ret = filer.invoke_elem(cmd)

# slap all returned attributes gathered by the iterator into a dict
snaplist = dict()
snaplist = ret.child_get('attributes-list')

# grab 'lag-time' from specified volume
def lag(item):
    for mirror in snaplist.children_get():
        if mirror.child_get_string('destination-volume') == item:
            lag = mirror.child_get_string('lag-time')
            print lag&lt;/PRE&gt;&lt;P&gt;This function iterates &amp;nbsp;over a list of 400 volumes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cluster is performing well, without errors. &amp;nbsp;There is no general slowness. &amp;nbsp;The speed of getting data out of the API is consistent, whether the query is coming from inside the same datacenter or remotely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the API supposed to be this slow? &amp;nbsp;Is there a faster way to do this? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 23:57:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Slow-ONTAP-API-response/m-p/106828#M1531</guid>
      <dc:creator>JasonBrown42</dc:creator>
      <dc:date>2025-06-04T23:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Slow ONTAP API response</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Slow-ONTAP-API-response/m-p/106967#M1534</link>
      <description>&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That 10 seconds sounds a little high from previous experience, but might not be out of the realm of possibility depending on how much data is being pulled back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the python snippit you pasted below - is this the function that is being repeated &lt;STRONG&gt;once for each of the 400&lt;/STRONG&gt; volumes?&amp;nbsp; Or are you pulling the results of 'snapmirror-get-iter' &lt;STRONG&gt;one time&lt;/STRONG&gt; and then iterating through the resulting returned data?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2015 19:57:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Slow-ONTAP-API-response/m-p/106967#M1534</guid>
      <dc:creator>Datageddon</dc:creator>
      <dc:date>2015-07-02T19:57:53Z</dc:date>
    </item>
  </channel>
</rss>

