<?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 QlikView Optimization in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-Optimization/m-p/224664#M712175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This scenario comes up often for me and I hope somebody out there has a better way. The examples below are just that, examples and don't reflect real data. I don't normally use *'s in my load statements;&lt;/P&gt;&lt;P&gt;I'll have to load a total of 4 tables from 4 different data sources. Two tables will be joined to each other and then the other two will be joined to each other, leaving me with two logical tables.&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load * from abc;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from def;&lt;/P&gt;&lt;P&gt;tab2:&lt;/P&gt;&lt;P&gt;load * from uvw;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from xyz;&lt;/P&gt;&lt;P&gt;After I have used the joines to filter out some of the data I don't want, I need to do a calculation on the on the combined logical tables that resulted from the join. The only way I've figured out how to do this is by loading tab1 and tab2 using a resident load, concatenating and calculating using a preceeding load. See below.&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load * from abc;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from def;&lt;/P&gt;&lt;P&gt;tab2:&lt;/P&gt;&lt;P&gt;load * from uvw;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from xyz;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;combinedtables:&lt;/P&gt;&lt;P&gt;LOAD COUNT(WIDGET) GROUP BY column2;&lt;/P&gt;&lt;P&gt;LOAD * resident tab1;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;LOAD * resident tab2;&lt;/P&gt;&lt;P&gt;DROP TABLE tab1,tab2;&lt;/P&gt;&lt;P&gt;The problem with this is the waste of reloading existing tables using the resident load. Not only is resident load slow it eats up extra ram that I often don't have a lot of extra of during the load process by loading the same data twice.&lt;/P&gt;&lt;P&gt;If you try the following you end up with uvw being concatenated with def and then xyz being left joined to abc,def and uvw.&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load * from abc;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from def;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;load * from uvw;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from xyz;&lt;/P&gt;&lt;P&gt;Any Suggestions?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Dec 2010 20:45:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-15T20:45:52Z</dc:date>
    <item>
      <title>QlikView Optimization</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Optimization/m-p/224664#M712175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This scenario comes up often for me and I hope somebody out there has a better way. The examples below are just that, examples and don't reflect real data. I don't normally use *'s in my load statements;&lt;/P&gt;&lt;P&gt;I'll have to load a total of 4 tables from 4 different data sources. Two tables will be joined to each other and then the other two will be joined to each other, leaving me with two logical tables.&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load * from abc;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from def;&lt;/P&gt;&lt;P&gt;tab2:&lt;/P&gt;&lt;P&gt;load * from uvw;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from xyz;&lt;/P&gt;&lt;P&gt;After I have used the joines to filter out some of the data I don't want, I need to do a calculation on the on the combined logical tables that resulted from the join. The only way I've figured out how to do this is by loading tab1 and tab2 using a resident load, concatenating and calculating using a preceeding load. See below.&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load * from abc;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from def;&lt;/P&gt;&lt;P&gt;tab2:&lt;/P&gt;&lt;P&gt;load * from uvw;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from xyz;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;combinedtables:&lt;/P&gt;&lt;P&gt;LOAD COUNT(WIDGET) GROUP BY column2;&lt;/P&gt;&lt;P&gt;LOAD * resident tab1;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;LOAD * resident tab2;&lt;/P&gt;&lt;P&gt;DROP TABLE tab1,tab2;&lt;/P&gt;&lt;P&gt;The problem with this is the waste of reloading existing tables using the resident load. Not only is resident load slow it eats up extra ram that I often don't have a lot of extra of during the load process by loading the same data twice.&lt;/P&gt;&lt;P&gt;If you try the following you end up with uvw being concatenated with def and then xyz being left joined to abc,def and uvw.&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load * from abc;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from def;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;load * from uvw;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from xyz;&lt;/P&gt;&lt;P&gt;Any Suggestions?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 20:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Optimization/m-p/224664#M712175</guid>
      <dc:creator />
      <dc:date>2010-12-15T20:45:52Z</dc:date>
    </item>
  </channel>
</rss>

