<?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 maapi applyTrans performance issue in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5004645#M8317</link>
    <description>&lt;P&gt;Hi, Team:&lt;/P&gt;&lt;P&gt;I need help.&lt;/P&gt;&lt;P&gt;My project uses NSO for 10 years. There is a table (a list with single key)&lt;BR /&gt;grows very big during 10 years. Every time I insert or delete an entry from/to the table the maapi.applyTrans takes 2-3 minutes.&lt;/P&gt;&lt;P&gt;This really impacts the customers.&lt;/P&gt;&lt;P&gt;Is there any one has the same issue?&lt;BR /&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;THX&lt;BR /&gt;sm000x&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 15:17:03 GMT</pubDate>
    <dc:creator>sm000x</dc:creator>
    <dc:date>2024-01-24T15:17:03Z</dc:date>
    <item>
      <title>maapi applyTrans performance issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5004645#M8317</link>
      <description>&lt;P&gt;Hi, Team:&lt;/P&gt;&lt;P&gt;I need help.&lt;/P&gt;&lt;P&gt;My project uses NSO for 10 years. There is a table (a list with single key)&lt;BR /&gt;grows very big during 10 years. Every time I insert or delete an entry from/to the table the maapi.applyTrans takes 2-3 minutes.&lt;/P&gt;&lt;P&gt;This really impacts the customers.&lt;/P&gt;&lt;P&gt;Is there any one has the same issue?&lt;BR /&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;THX&lt;BR /&gt;sm000x&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 15:17:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5004645#M8317</guid>
      <dc:creator>sm000x</dc:creator>
      <dc:date>2024-01-24T15:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: maapi applyTrans performance issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5004686#M8318</link>
      <description>&lt;P&gt;Hi, Just add more information on my question.&lt;/P&gt;&lt;P&gt;(1) There is no device involved. The table is in cdb, to add/delete entry from the table does not trigger device actions. But it takes 2-3 minutes.&lt;/P&gt;&lt;P&gt;(2) By using "commit | details", I found the 99% time is spend on "dependency-triggered validation"&lt;/P&gt;&lt;P&gt;Hope this can provide more information.&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;P&gt;sm000x&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 16:15:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5004686#M8318</guid>
      <dc:creator>sm000x</dc:creator>
      <dc:date>2024-01-24T16:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: maapi applyTrans performance issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5008775#M8325</link>
      <description>&lt;P&gt;What kind of validation constraints exist in your model?&lt;/P&gt;
&lt;P&gt;Have you looked in the xpath log?&lt;/P&gt;
&lt;P&gt;Adding items to a list is usually easier (require less validation work) than deleting items.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 07:25:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5008775#M8325</guid>
      <dc:creator>mljunggr</dc:creator>
      <dc:date>2024-01-30T07:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: maapi applyTrans performance issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5011185#M8335</link>
      <description>Hi, mljunggr:&lt;BR /&gt;&lt;BR /&gt;Sorry for the delay.&lt;BR /&gt;&lt;BR /&gt;What I found was the leafref always does a full table scan.&lt;BR /&gt;For example if a leaf dev-name leafref to devices/device/name, then whenever&lt;BR /&gt;the dev-name is used ncs does a full table scan on devices/device list. If the&lt;BR /&gt;devices/device list is huge (after 10 years' cumulation) then the performance is heavily impacted.&lt;BR /&gt;I have to take out the leafref in order to improve the performance.&lt;BR /&gt;After change leafref to string, the performance improved from 2-3 minutes to few&lt;BR /&gt;seconds.&lt;BR /&gt;&lt;BR /&gt;I wish there is some way to disable the full table scan.&lt;BR /&gt;&lt;BR /&gt;THX&lt;BR /&gt;sm000x&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:29:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5011185#M8335</guid>
      <dc:creator>sm000x</dc:creator>
      <dc:date>2024-02-01T15:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: maapi applyTrans performance issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5014016#M8345</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you are using the leafref as a way to have CLI completion and WebUI drop-downs, you can check to use "tailf:non-strict-leafref" extension. I did not check its performance in large lists.&lt;/P&gt;
&lt;P&gt;You use it this way:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;      leaf name {
        type string;
        tailf:non-strict-leafref {
          path "/ncs:devices/ncs:device/ncs:name";
        }
      }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Feb 2024 10:47:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5014016#M8345</guid>
      <dc:creator>rogaglia</dc:creator>
      <dc:date>2024-02-07T10:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: maapi applyTrans performance issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5014245#M8349</link>
      <description>Hi, rogaglia:&lt;BR /&gt;&lt;BR /&gt;Thank you for this exiting information. I will give it a try.&lt;BR /&gt;&lt;BR /&gt;THX&lt;BR /&gt;sm000x&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Feb 2024 14:28:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/maapi-applytrans-performance-issue/m-p/5014245#M8349</guid>
      <dc:creator>sm000x</dc:creator>
      <dc:date>2024-02-07T14:28:35Z</dc:date>
    </item>
  </channel>
</rss>

