<?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 Non-optimised load faster than optimised load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Non-optimised-load-faster-than-optimised-load/m-p/1221994#M390604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A colleague recently uncovered a rather unexpected result. Using 11.20 SR15, this script ran an optimised load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Optimised load - 39 sec for 5.8m rows&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM [somerealdata.qvd] (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this script loading the same data, but non-optimised, runs &lt;SPAN style="text-decoration: underline;"&gt;significantly&lt;/SPAN&gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;(almost 2x) &lt;/SPAN&gt;faste&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;r.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Non-optimized load - 21 sec for 5.8m rows&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM [somerealdata.qvd] (qvd)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE 1=1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Watching the task manager, it could be seen that the optimised load was single-threaded (why would this be, Qlik?), while the de-optimised load was multi-threaded. This was running on a 32 processor machine (dual 8 core Xeon hyperthreaded) and most of the processors got roped in on the latter load. So you might not observe the same on a less powerful machine or one that is already heavily loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We then tried a small variation. and got the same result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Also non-optimized load - again 21 sec for 5.8m rows&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1 as Count&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM [somerealdata.qvd] (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We replicated the loads several times and the results were to all intents and purposes identical. This test was using real world data. a&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;nd as we load up to 100m rows in complex multi-step ETL processes, this could have a real impact on how quickly processes run&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would welcome input from one the Qlik technical experts (for example, about the threading) and any observations, especially if someone else has observed similar behaviour, including on recent version (V12 or 12.10).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2016 11:33:37 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-11-24T11:33:37Z</dc:date>
    <item>
      <title>Non-optimised load faster than optimised load</title>
      <link>https://community.qlik.com/t5/QlikView/Non-optimised-load-faster-than-optimised-load/m-p/1221994#M390604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A colleague recently uncovered a rather unexpected result. Using 11.20 SR15, this script ran an optimised load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Optimised load - 39 sec for 5.8m rows&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM [somerealdata.qvd] (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this script loading the same data, but non-optimised, runs &lt;SPAN style="text-decoration: underline;"&gt;significantly&lt;/SPAN&gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;(almost 2x) &lt;/SPAN&gt;faste&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;r.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Non-optimized load - 21 sec for 5.8m rows&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM [somerealdata.qvd] (qvd)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE 1=1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Watching the task manager, it could be seen that the optimised load was single-threaded (why would this be, Qlik?), while the de-optimised load was multi-threaded. This was running on a 32 processor machine (dual 8 core Xeon hyperthreaded) and most of the processors got roped in on the latter load. So you might not observe the same on a less powerful machine or one that is already heavily loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We then tried a small variation. and got the same result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Also non-optimized load - again 21 sec for 5.8m rows&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1 as Count&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM [somerealdata.qvd] (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We replicated the loads several times and the results were to all intents and purposes identical. This test was using real world data. a&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;nd as we load up to 100m rows in complex multi-step ETL processes, this could have a real impact on how quickly processes run&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would welcome input from one the Qlik technical experts (for example, about the threading) and any observations, especially if someone else has observed similar behaviour, including on recent version (V12 or 12.10).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 11:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Non-optimised-load-faster-than-optimised-load/m-p/1221994#M390604</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-24T11:33:37Z</dc:date>
    </item>
  </channel>
</rss>

