<?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: Problem with performance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31575#M5291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, sounds counterintuitive but experience proves this point: QVD optimized is faster than RESIDENT, especially for big tables. I don't know how each of them work in the source code, but we have an application loading a single 12GB QVD, which works, but the same RESIDENT table simply doesn't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Feb 2018 07:33:23 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2018-02-19T07:33:23Z</dc:date>
    <item>
      <title>Problem with performance</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31569#M5285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm loading a model that is taking a bit (2 1/2 hours). Using trace I've found that the attached piece of code takes 30 minutes to load.&lt;/P&gt;&lt;P&gt;¿What can be slowing it so much?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josefina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CodeSample.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193513_CodeSample.PNG" style="height: 452px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 14:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31569#M5285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-15T14:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with performance</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31570#M5286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to do the 'Resident' Load instead of Preceding. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 14:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31570#M5286</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2018-02-15T14:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with performance</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31571#M5287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Things I would do:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Replace individual If() by ApplyMap() or JOIN&lt;/LI&gt;&lt;LI&gt;Do everything at once (if possible) instead of using a preceding load&lt;/LI&gt;&lt;LI&gt;If the table is big, store it on QVD format, then load from there&lt;/LI&gt;&lt;LI&gt;Use flags instead of creating new fields, then use the flag in set analysis, when possible&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the script would look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15187070295516282" jivemacro_uid="_15187070295516282"&gt;
&lt;P style="font-size: 13.3333px;"&gt;STORE Traffic_tmp INTO Traffic_tmp.qvd (qvd); // place your LIB: connection here instead&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;DROP TABLE Traffic_tmp;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Traffic:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Traffic_Date,&lt;BR /&gt;Phone,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Pick(Match(Left(PrepType, 1), 'P', 'Q'), 'Prepaid', 'Pospaid') AS [Prepaid / Pospaid],&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;ApplyMap('TechnologyMapping', AutoNumber(Phone &amp;amp; '_' &amp;amp; TrafficDate), 'Null') AS [Eq Real Technology],&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;// be careful with this one, AutoNumber() works differently with each table,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;// I'd suggest to create the number and do a JOIN or an ApplyMap() instead of this&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;TotalSMSQty,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;TotalPremiumSMSQty,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;TotalMin,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;TotalVolumen,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Type&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;FROM &lt;SPAN style="font-size: 13.3333px;"&gt;Traffic_tmp.qvd (qvd); // place your LIB: connection here instead&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I wrote it on the fly, check for missing commas or parentheses.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 15:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31571#M5287</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-02-15T15:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with performance</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31572#M5288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thank you for your detailed answer. I am suprised by this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"If the table is big, store it on QVD format, then load from there"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;¿Is it faster if a table loads from a QVD than from memory (resident)? ¿If I already have it on memory how can this help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd love if you could explain it to me further.&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31572#M5288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-15T16:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with performance</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31573#M5289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I can see the factor slowing it down the most is the Applymap; try to take it out and see if performance improves. If so, replace it with a Join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31573#M5289</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2018-02-15T16:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with performance</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31574#M5290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Autonumber is slowing down reload, try by Keeping Autonumber and Applymap in separate loads. Create Autonumber field first and Use applymap in Preceding load. hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 07:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31574#M5290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T07:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with performance</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31575#M5291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, sounds counterintuitive but experience proves this point: QVD optimized is faster than RESIDENT, especially for big tables. I don't know how each of them work in the source code, but we have an application loading a single 12GB QVD, which works, but the same RESIDENT table simply doesn't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 07:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31575#M5291</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-02-19T07:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with performance</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31576#M5292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the explanation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 17:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-performance/m-p/31576#M5292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T17:08:44Z</dc:date>
    </item>
  </channel>
</rss>

