<?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: Mashup Objects not closable - huge performance issue in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Objects-not-closable-huge-performance-issue/m-p/1323111#M7429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like a bug, I will need to investigate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 May 2017 20:04:03 GMT</pubDate>
    <dc:creator>Aiham_Azmeh</dc:creator>
    <dc:date>2017-05-11T20:04:03Z</dc:date>
    <item>
      <title>Mashup Objects not closable - huge performance issue</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Objects-not-closable-huge-performance-issue/m-p/1323108#M7426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a Singe Page Application Mashup with lot's ob Sense Objects in it. I link the objects with the app.GetObject function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When navigating through the Mashup it becomes slower and slower until it gets unusable. I profiled a bit and found out, that with the increasing count of registered objects, the count of watchers and the time for the digest cycle increases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can't unregister the objects. Before I updated to Qlik Sense 3, there was that "close" function on the object model which is delivered by the promise of the GetObject function. However, I didn't notice, that this close function didn't change anything. Now that I have Qlik Sense 3, the close function is gone completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried the following functions, because I thought it may help, but they didn't:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.destroySenseObject(objectId)&lt;/P&gt;&lt;P&gt;object.destroyAllChildren&lt;BR /&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;object.&lt;/SPAN&gt;removeAllListeners&lt;BR /&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;object.&lt;/SPAN&gt;markAsCancelled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 00:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Objects-not-closable-huge-performance-issue/m-p/1323108#M7426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T00:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup Objects not closable - huge performance issue</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Objects-not-closable-huge-performance-issue/m-p/1323109#M7427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/245360"&gt;alexander.johr&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One common way to do it is by storing the visualization models in an object and close them when needed:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14945274359984912" jivemacro_uid="_14945274359984912" modifiedtitle="true"&gt;
&lt;P&gt;var vizObjects = {};&lt;/P&gt;
&lt;P&gt;function clean(){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(var vizId in vizObjects){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vizObjects[vizId].close();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[...]&lt;/P&gt;
&lt;P&gt;app.getObject("QV01", "xyz"),then(function(model){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vizObjects["xyz"] = model;&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;[...]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;app.getObject("QV99", "abc"),then(function(model){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vizObjects["abd"] = model;&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//somewhere else under another route&lt;/P&gt;
&lt;P&gt;clean();&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;... anyway something like that.&lt;/P&gt;&lt;P&gt;Unfortunately I couldn't found any example, maybe it's time to write one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 18:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Objects-not-closable-huge-performance-issue/m-p/1323109#M7427</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2017-05-11T18:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup Objects not closable - huge performance issue</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Objects-not-closable-huge-performance-issue/m-p/1323110#M7428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's exactly what I do (or rather did) and what my question addresses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But &lt;SPAN style="font-size: 13.3333px;"&gt;the close method &lt;/SPAN&gt;was removed and now I get the error: &lt;SPAN style="font-size: 10pt;"&gt;TypeError: obj.close is not a function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Qlik Sense Desktop &lt;SPAN style="font-size: 13.3333px;"&gt;3.2 SR3. For version 2.x it worked fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 19:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Objects-not-closable-huge-performance-issue/m-p/1323110#M7428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T19:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup Objects not closable - huge performance issue</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Objects-not-closable-huge-performance-issue/m-p/1323111#M7429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like a bug, I will need to investigate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 20:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Objects-not-closable-huge-performance-issue/m-p/1323111#M7429</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2017-05-11T20:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup Objects not closable - huge performance issue</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Objects-not-closable-huge-performance-issue/m-p/1722126#M12947</link>
      <description>&lt;P&gt;I have the same issue on Qlik Sense June 2019. Close method not seems to work. Is there any alternative about this ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 12:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Objects-not-closable-huge-performance-issue/m-p/1722126#M12947</guid>
      <dc:creator>Onur_Can_Ak</dc:creator>
      <dc:date>2020-06-25T12:32:21Z</dc:date>
    </item>
  </channel>
</rss>

