<?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: Join Efficiency and Performance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-Efficiency-and-Performance/m-p/560520#M689462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13833130613901778 jive_macro_code" jivemacro_uid="_13833130613901778"&gt;
&lt;P&gt;T1:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;SubField('$(MonthNames)',';',mod(RecNo(),12)) as F1,&lt;/P&gt;
&lt;P&gt;rand() as F2&lt;/P&gt;
&lt;P&gt;AutoGenerate 10000000;&lt;/P&gt;
&lt;P&gt;join&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SubField('$(MonthNames)',';',mod(RecNo(),12)) as F1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; rand() as F3&lt;/P&gt;
&lt;P&gt;autogenerate 100;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;took 28 secs into my notebook and the code below took the same 28 secs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13833131540434741" jivemacro_uid="_13833131540434741"&gt;
&lt;P&gt;T2:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SubField('$(MonthNames)',';',mod(RecNo(),12)) as F1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; rand() as F3&lt;/P&gt;
&lt;P&gt;autogenerate 100;&lt;/P&gt;
&lt;P&gt;join&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;SubField('$(MonthNames)',';',mod(RecNo(),12)) as F1,&lt;/P&gt;
&lt;P&gt;rand() as F2&lt;/P&gt;
&lt;P&gt;AutoGenerate 10000000;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Nov 2013 13:39:17 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2013-11-01T13:39:17Z</dc:date>
    <item>
      <title>Join Efficiency and Performance</title>
      <link>https://community.qlik.com/t5/QlikView/Join-Efficiency-and-Performance/m-p/560519#M689461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If in a load script have 2 tables one with a few million rows and one with only a few dozen rows. which is more efficient:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;a)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load the &lt;EM&gt;big&lt;/EM&gt; one first and then join load the &lt;EM&gt;small&lt;/EM&gt; one second&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;b)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load the &lt;EM&gt;small &lt;/EM&gt;one first and then join load the &lt;EM&gt;big &lt;/EM&gt;one second&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;[I know the ApplyMap() function could be an option, but in this scenario I do not wish to use it]&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 13:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-Efficiency-and-Performance/m-p/560519#M689461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-01T13:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Join Efficiency and Performance</title>
      <link>https://community.qlik.com/t5/QlikView/Join-Efficiency-and-Performance/m-p/560520#M689462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13833130613901778 jive_macro_code" jivemacro_uid="_13833130613901778"&gt;
&lt;P&gt;T1:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;SubField('$(MonthNames)',';',mod(RecNo(),12)) as F1,&lt;/P&gt;
&lt;P&gt;rand() as F2&lt;/P&gt;
&lt;P&gt;AutoGenerate 10000000;&lt;/P&gt;
&lt;P&gt;join&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SubField('$(MonthNames)',';',mod(RecNo(),12)) as F1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; rand() as F3&lt;/P&gt;
&lt;P&gt;autogenerate 100;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;took 28 secs into my notebook and the code below took the same 28 secs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13833131540434741" jivemacro_uid="_13833131540434741"&gt;
&lt;P&gt;T2:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SubField('$(MonthNames)',';',mod(RecNo(),12)) as F1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; rand() as F3&lt;/P&gt;
&lt;P&gt;autogenerate 100;&lt;/P&gt;
&lt;P&gt;join&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;SubField('$(MonthNames)',';',mod(RecNo(),12)) as F1,&lt;/P&gt;
&lt;P&gt;rand() as F2&lt;/P&gt;
&lt;P&gt;AutoGenerate 10000000;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 13:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-Efficiency-and-Performance/m-p/560520#M689462</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-01T13:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Join Efficiency and Performance</title>
      <link>https://community.qlik.com/t5/QlikView/Join-Efficiency-and-Performance/m-p/560521#M689464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd be interested to know how the table widths affected this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, for example if the larger table had say 10 columns, and the smaller table had 20 columns (and vice versa).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, whether this is affected by the join being one to many&lt;/P&gt;&lt;P&gt;Unfortunately too busy to test this myself today &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 13:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-Efficiency-and-Performance/m-p/560521#M689464</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2013-11-01T13:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Join Efficiency and Performance</title>
      <link>https://community.qlik.com/t5/QlikView/Join-Efficiency-and-Performance/m-p/560522#M689465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The calculations to generate the records may outweigh the time needed for the join. So your example may not be the right way to test this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One scenario in which it would be faster to load the big table first is if the big table can be loaded with an optimised load from qvd. A join would cause a non-optimised load. The big table would suffer from this more than the small table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 13:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-Efficiency-and-Performance/m-p/560522#M689465</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-01T13:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Join Efficiency and Performance</title>
      <link>https://community.qlik.com/t5/QlikView/Join-Efficiency-and-Performance/m-p/560523#M689466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Gysbert&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good point re &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;optimised &lt;/SPAN&gt;/ &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;non-optimised loads&lt;/SPAN&gt;, I had not thought of that scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 14:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-Efficiency-and-Performance/m-p/560523#M689466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-01T14:05:46Z</dc:date>
    </item>
  </channel>
</rss>

