<?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 Quick Tips #14 - Reloads in Scalability</title>
    <link>https://community.qlik.com/t5/Scalability/Quick-Tips-14-Reloads/m-p/1479654#M1085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;Quick Tips #14 - Reloads&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Times New Roman','serif';"&gt;&lt;STRONG&gt;On &lt;EM&gt;MonthName()&lt;/EM&gt; and &lt;EM&gt;DayName()&lt;/EM&gt; in the load script:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Reloading data in QlikView can be slowed by the use of methods that doesn’t scale well over cores. This can for some functions be avoided with rewriting them using better optimized ones.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Two such examples are &lt;EM&gt;MonthName()&lt;/EM&gt; and &lt;EM&gt;DayName()&lt;/EM&gt;. If they are used in a load script then the entire load will be slower and scale less optimized than it has to be. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Both functions can be replaced by more scalable functions:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;EM&gt;Dayname()&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;can be replaced with &lt;EM&gt;TimeStamp(Floor(&amp;lt;Your Timestamp&amp;gt;), 'YYYY-MM-DD')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;EM&gt;MonthName() &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;can be replaced with &lt;EM&gt;date(&amp;lt;Your Timestamp&amp;gt;, 'MMM YYYY')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;These two functions are not as time consuming within the user interface of a QlikView application as an expression, due to caching, and does not have to be avoided there as in the load script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;STRONG&gt;QlikView improvement in 11.20 SR2 (and onwards) no longer requires workarounds as denoted above.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Times New Roman','serif';"&gt;&lt;STRONG&gt;On the &lt;EM&gt;rand()&lt;/EM&gt; function in the load script:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;The script generated by pressing CTRL-q twice relies heavily on the &lt;EM&gt;rand()&lt;/EM&gt; function and will generate data on the fly rather than actually loading it from a source. Do not use CTRL-q code or &lt;EM&gt;rand()&lt;/EM&gt; when performing benchmarks of reloads, as &lt;EM&gt;rand()&lt;/EM&gt; will not scale well over cores.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Cheers from the Scalability Team&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2012 12:12:39 GMT</pubDate>
    <dc:creator>hps</dc:creator>
    <dc:date>2012-10-10T12:12:39Z</dc:date>
    <item>
      <title>Quick Tips #14 - Reloads</title>
      <link>https://community.qlik.com/t5/Scalability/Quick-Tips-14-Reloads/m-p/1479654#M1085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;Quick Tips #14 - Reloads&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Times New Roman','serif';"&gt;&lt;STRONG&gt;On &lt;EM&gt;MonthName()&lt;/EM&gt; and &lt;EM&gt;DayName()&lt;/EM&gt; in the load script:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Reloading data in QlikView can be slowed by the use of methods that doesn’t scale well over cores. This can for some functions be avoided with rewriting them using better optimized ones.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Two such examples are &lt;EM&gt;MonthName()&lt;/EM&gt; and &lt;EM&gt;DayName()&lt;/EM&gt;. If they are used in a load script then the entire load will be slower and scale less optimized than it has to be. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Both functions can be replaced by more scalable functions:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;EM&gt;Dayname()&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;can be replaced with &lt;EM&gt;TimeStamp(Floor(&amp;lt;Your Timestamp&amp;gt;), 'YYYY-MM-DD')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;EM&gt;MonthName() &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;can be replaced with &lt;EM&gt;date(&amp;lt;Your Timestamp&amp;gt;, 'MMM YYYY')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;These two functions are not as time consuming within the user interface of a QlikView application as an expression, due to caching, and does not have to be avoided there as in the load script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;STRONG&gt;QlikView improvement in 11.20 SR2 (and onwards) no longer requires workarounds as denoted above.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Times New Roman','serif';"&gt;&lt;STRONG&gt;On the &lt;EM&gt;rand()&lt;/EM&gt; function in the load script:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;The script generated by pressing CTRL-q twice relies heavily on the &lt;EM&gt;rand()&lt;/EM&gt; function and will generate data on the fly rather than actually loading it from a source. Do not use CTRL-q code or &lt;EM&gt;rand()&lt;/EM&gt; when performing benchmarks of reloads, as &lt;EM&gt;rand()&lt;/EM&gt; will not scale well over cores.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Cheers from the Scalability Team&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 12:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Scalability/Quick-Tips-14-Reloads/m-p/1479654#M1085</guid>
      <dc:creator>hps</dc:creator>
      <dc:date>2012-10-10T12:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Tips #14 - Reloads</title>
      <link>https://community.qlik.com/t5/Scalability/Quick-Tips-14-Reloads/m-p/1479655#M1086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give any more examples of "methods that doesn’t scale well over cores"? Are they documented somewhere? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 13:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Scalability/Quick-Tips-14-Reloads/m-p/1479655#M1086</guid>
      <dc:creator>msteedle</dc:creator>
      <dc:date>2012-12-21T13:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Tips #14 - Reloads</title>
      <link>https://community.qlik.com/t5/Scalability/Quick-Tips-14-Reloads/m-p/1479656#M1087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for these operations (dayname etc..) to not scale over cores is that for every row the script will query the operating system for date and time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So any operation that require that sort of information will show a similar behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is only true for loading data. Within the QVW deployed on QVS it will scale well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no list available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hampus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 08:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Scalability/Quick-Tips-14-Reloads/m-p/1479656#M1087</guid>
      <dc:creator>hps</dc:creator>
      <dc:date>2013-01-07T08:02:45Z</dc:date>
    </item>
  </channel>
</rss>

