<?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: Performance preceding load on a KEEP in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785006#M277814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm already doing a LEFT KEEP on the table with the WHERE EXISTS.&amp;nbsp; I need the WHERE EXISTS because it hits a filter table to limit the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2015 15:15:00 GMT</pubDate>
    <dc:creator>NickHoff</dc:creator>
    <dc:date>2015-01-14T15:15:00Z</dc:date>
    <item>
      <title>Performance preceding load on a KEEP</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785002#M277810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've exhausted most of my resources on this issue.&amp;nbsp; The statement below runs correctly, but it takes an extremely long time to run, and we do have some powerful production servers.&amp;nbsp; If I attempt to do a preceding load, and SUM factors i'm still forced to keep Factors in the original load, which un-summed will take just as long to load.&amp;nbsp; If I keep SUM(Factors) i'm forced to do a GROUP BY.&amp;nbsp; What i'm looking for is a solution to improve my load time on a table that contains 500+ million records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT KEEP(PatientFact)&lt;/P&gt;&lt;P&gt;LOAD PatientDWID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPLYMAP('MapRoomType',RevenueCode,NULL()) AS RoomType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RevenueCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RevenueCodeDesc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ChargeHCPCSCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(Factors)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\..\..\1.Common\1.2.QVD\1.2.1.Stage1\1.2.1.Common_RevCodeSummary_CDC.qvd](qvd)&lt;/P&gt;&lt;P&gt;WHERE EXISTS (RevenueCode,RevenueCode)&lt;/P&gt;&lt;P&gt;GROUP BY PatientDWID, RevenueCode, RevenueCodeDesc,ChargeHCPCSCode;&lt;/P&gt;&lt;P&gt;STORE RoomFactors INTO [..\..\5.2.QVD\5.2.2.Stage2\5.2.2.ICU_RevCodeFactorSummary.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the preceding load i've attempted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RoomFactors:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM(Factors) AS FactorsSUM&lt;/P&gt;&lt;P&gt;&amp;nbsp; GROUP BY PatientDWID, RevenueCode;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT KEEP(PatientFact)&lt;/P&gt;&lt;P&gt;LOAD PatientDWID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPLYMAP('MapRoomType',RevenueCode,NULL()) AS RoomType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RevenueCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RevenueCodeDesc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ChargeHCPCSCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Factors&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\..\..\1.Common\1.2.QVD\1.2.1.Stage1\1.2.1.Common_RevCodeSummary_CDC.qvd](qvd)&lt;/P&gt;&lt;P&gt;WHERE EXISTS (RevenueCode,RevenueCode)&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;STORE RoomFactors INTO [..\..\5.2.QVD\5.2.2.Stage2\5.2.2.ICU_RevCodeFactorSummary.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 20:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785002#M277810</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2015-01-13T20:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Performance preceding load on a KEEP</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785003#M277811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing you can try is replacing the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;WHERE EXISTS (RevenueCode,RevenueCode) with a left keep too. See this discussion: &lt;A _jive_internal="true" href="https://community.qlik.com/message/588837#588837" title="http://community.qlik.com/message/588837#588837"&gt;http://community.qlik.com/message/588837#588837&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 10:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785003#M277811</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-01-14T10:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance preceding load on a KEEP</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785004#M277812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are doing where exists on fields with the same name, you should remove the first RevenueCode.&lt;/P&gt;&lt;P&gt;Like : WHERE EXISTS (RevenueCode)&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;This makes a difference.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 11:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785004#M277812</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2015-01-14T11:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance preceding load on a KEEP</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785005#M277813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That wouldn't work for what i'm doing because the first RevenueCode is looking everywhere else in the application for RevenueCode, the second matches the first with what's in the current table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785005#M277813</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2015-01-14T15:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Performance preceding load on a KEEP</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785006#M277814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm already doing a LEFT KEEP on the table with the WHERE EXISTS.&amp;nbsp; I need the WHERE EXISTS because it hits a filter table to limit the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785006#M277814</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2015-01-14T15:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Performance preceding load on a KEEP</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785007#M277815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried doing it in two steps instead of preceeding load?&lt;/P&gt;&lt;P&gt;A couple of days ago I had a similar situation with a preceeding load and aggregation.&lt;/P&gt;&lt;P&gt;It was very slow, I instead used a temporary table and resident load.&lt;/P&gt;&lt;P&gt;I had about 1000 rows so maybe it will not be the same for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785007#M277815</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2015-01-14T15:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Performance preceding load on a KEEP</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785008#M277816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up creating and using a summary table for the rev code with factors summed up.&amp;nbsp; That way performing the aggregation ahead of time I didn't have to use a GROUP by.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 20:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-preceding-load-on-a-KEEP/m-p/785008#M277816</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2015-01-15T20:15:07Z</dc:date>
    </item>
  </channel>
</rss>

