<?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: QlikView S2 Loading times/joins in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702680#M253518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;QlikView S2&lt;/SPAN&gt; is.&amp;nbsp; Is it QlikSense or QlikView ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you share the load script and the complete log file ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 17:24:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-03T17:24:52Z</dc:date>
    <item>
      <title>QlikView S2 Loading times/joins</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702679#M253517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wondering if someone can give me some advice please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the joins in my QlikView S2 document seem to be taking a fair amount of time, i'm not very experienced in QlikView so wondered if this is usual or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - I have one table where i am loading 56 fields (from an optimised QVD), there are 1,654,422 lines and its taking approximately 5 minutes to load, is that usual?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - I have a join that is essentially loading 900,000 lines, using an if statement to create a new field and then it joins these back to the original table in 11 seconds.&lt;/P&gt;&lt;P&gt;I have another join which has a similar if statement to add the field but QlikView seems to hang at that point in the script, i've not successfully managed to get past that point as it hangs until it fails. Both of these joins are joining back to the original table so there are no many to one/grouping issues. I suspected that something was wrong with my If statement but i have tested that using a text box and its working perfectly, below is an example of the join and relevant log entry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;left &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;SPAN style="color: #000000;"&gt;Table1&lt;/SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;load&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;UniqueID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FLOOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;date1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;date2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vHoliday)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ResolutionDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;SPAN style="color: #000000;"&gt;Table1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;//(note date 2 already held as a date only (no time) so floor is not being used)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;03/09/2014 16:30:08:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Joining/Keeping&lt;BR /&gt;03/09/2014 16:30:16: 2127&amp;nbsp; left Join (Table1)&lt;BR /&gt;03/09/2014 16:30:16: 2128&amp;nbsp; load Unique_ID,&lt;BR /&gt;03/09/2014 16:30:16: 2129&amp;nbsp; NetWorkDays(FLOOR(date1),date2,'25/08/2014','26/05/2014','05/05/2014','21/04/2014','18/04/2014','01/01/2014','26/12/2013','25/12/2013','26/08/2013','27/05/2013','06/05/2013','01/04/2013','29/03/2013','01/01/2013','26/12/2012','25/12/2012','27/08/2012','28/05/2012','07/05/2012','09/04/2012','06/04/2012','02/01/2012','27/12/2011','26/12/2011','29/08/2011','30/05/2011','02/05/2011','25/04/2011','22/04/2011','03/01/2011','28/12/2010','27/12/2010','30/08/2010','31/05/2010','03/05/2010','05/04/2010','02/04/2010',) as ResolutionDays&lt;BR /&gt;03/09/2014 16:30:16: 2130&amp;nbsp; Resident Table1&lt;BR /&gt;03/09/2014 16:30:16: 2131 &lt;/P&gt;&lt;P&gt;03/09/2014 16:30:16:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 fields found: Unique_ID, ResolutionDays, 3,613,492 lines fetched&lt;/P&gt;&lt;P&gt;Nothing else happens after the line above and eventually the reload fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;3 - i have a single table (not QVD optimised but an in line load), this is loading 3 lines but takes 2 minutes, this doesnt seem right considering some of the times i have given above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Can anyone provide any advice as to why this is occuring and&lt;/SPAN&gt; how to approach joins that cause a complete time out or join very slowly? I would also like to get a feel from others to see if each of the above is the 'norm' or not in terms of loading time. I would also be interested to know if the prescence of synthetic tables in the data model when performing joins would have a detremental impact? The data model in question was handed over to me and certain synthetic tables do exist during the load however i am very limited to where abouts i can script the flags i wish to add because the relevant fields/tables need to be loaded first. Also due to the denormalised data model some of those synthetic tables cannot be removed until later in the loading script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Just so you know the steps i have taken already i usually:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;1. Test the code i am adding in a text box first to ensure i get the desired result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;2. If using where clauses to reduce the number of records being loaded i replicate these on a development sheet so that i know how many records i should be expecting &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;3. Run the script with small limited load first to ensure the code is ok and that there are no issues&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;; Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 17:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702679#M253517</guid>
      <dc:creator />
      <dc:date>2014-09-03T17:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView S2 Loading times/joins</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702680#M253518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;QlikView S2&lt;/SPAN&gt; is.&amp;nbsp; Is it QlikSense or QlikView ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you share the load script and the complete log file ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 17:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702680#M253518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-03T17:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView S2 Loading times/joins</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702681#M253519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView S2 is the QVD that transforms my raw data into a denormalised reporting data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 18:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702681#M253519</guid>
      <dc:creator />
      <dc:date>2014-09-03T18:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView S2 Loading times/joins</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702682#M253520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry i can't attach the log file. Guess i just wanted to prompt a general debate as to common causes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 18:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702682#M253520</guid>
      <dc:creator />
      <dc:date>2014-09-03T18:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView S2 Loading times/joins</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702683#M253521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's tough to offer much specific help without the document log. But here goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#1 &amp;amp; #3. Those load times seem slow. Is that INLINE load the last load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;#2.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"Both of these joins are joining back to the original table so there are no many to one/grouping issues"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;That is not necessarily true. Could be if both sides of the join have a primary key. Have you confirmed the record counts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You mention an if() statement, but I don't see an if() in what you posted?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;It would be interesting to see both join1 and join2. If they are both self joins (source and target table the same),&amp;nbsp; could they be done in a single join? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 21:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702683#M253521</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-09-03T21:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView S2 Loading times/joins</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702684#M253522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;#1 is not an inline load, its from an optimised QVD&lt;/P&gt;&lt;P&gt;#3 is not an inline load, but its from a non optimised QVD&lt;/P&gt;&lt;P&gt;Both #1 and #3 are only loads, not joins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#2 is a self join - record count confirms a 1-1 relationship. Both joins i mention in this point are to different tables so cannot be scripted into a single join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what would cause the loading script to hang when processing a join?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 12:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-S2-Loading-times-joins/m-p/702684#M253522</guid>
      <dc:creator />
      <dc:date>2014-09-04T12:38:18Z</dc:date>
    </item>
  </channel>
</rss>

