<?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 load  Optimization for Resident table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-Optimization-for-Resident-table/m-p/144820#M23627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following up on my post, there seems to be a MUCH simpler approach as long as you have enough RAM. Do your MOST restrictive selection with an exists(). In this case, I'm assuming that the country will narrow down the retrieved data more than the type or the year. Then do inner joins to inline tables to further restrict the data.&lt;/P&gt;&lt;P&gt;[Countries]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Country&lt;BR /&gt;USA&lt;BR /&gt;]&lt;BR /&gt;;&lt;BR /&gt;[Customers]:&lt;BR /&gt;LOAD&lt;BR /&gt; CustNo&lt;BR /&gt;,Customer&lt;BR /&gt;,Type&lt;BR /&gt;,Country&lt;BR /&gt;,Year&lt;BR /&gt;WHERE EXISTS("Country")&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN LOAD * INLINE [&lt;BR /&gt;Type&lt;BR /&gt;A&lt;BR /&gt;];&lt;BR /&gt;INNER JOIN LOAD * INLINE [&lt;BR /&gt;Year&lt;BR /&gt;2008&lt;BR /&gt;];&lt;BR /&gt;DROP TABLE [Countries]&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Your main load will be optimized, and the inner joins are very fast. That's definitely the approach I'd recommend over my previous one unless there is simply not enough RAM to pull in the data like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2009 06:27:12 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-06-03T06:27:12Z</dc:date>
    <item>
      <title>load  Optimization for Resident table</title>
      <link>https://community.qlik.com/t5/QlikView/load-Optimization-for-Resident-table/m-p/144818#M23625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 276pt; border-collapse: collapse;" width="368"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 84pt; mso-width-source: userset; mso-width-alt: 4096;" width="112" /&gt;&lt;COL span="3" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="width: 48pt; height: 15pt; background-color: #9bbb59; border: windowtext 0.5pt solid;" width="64"&gt;CustNo&lt;/TD&gt;&lt;TD class="xl64" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; width: 84pt; border-bottom: windowtext 0.5pt solid; background-color: #9bbb59;" width="112"&gt;Customer&lt;/TD&gt;&lt;TD class="xl64" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; width: 48pt; border-bottom: windowtext 0.5pt solid; background-color: #9bbb59;" width="64"&gt;Type&lt;/TD&gt;&lt;TD class="xl64" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; width: 48pt; border-bottom: windowtext 0.5pt solid; background-color: #9bbb59;" width="64"&gt;Country&lt;/TD&gt;&lt;TD class="xl64" style="border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; border-left: windowtext; width: 48pt; border-bottom: windowtext 0.5pt solid; background-color: #9bbb59;" width="64"&gt;Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;1000&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;customerA&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;USA&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;2008&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;2000&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;customerB&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;USA&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;2009&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;3000&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;customerC&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;USA&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;2008&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;4000&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;customerA&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;USA&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;2008&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;5000&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;customerA&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;USA&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;2008&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;6000&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;customerA&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;Mexico&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;2009&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;7000&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;customerA&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;Mexico&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;2008&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext 0.5pt solid; border-bottom: windowtext 0.5pt solid; height: 15pt; background-color: transparent;"&gt;&lt;P&gt;8000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;customerA&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;USA&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-right: windowtext 0.5pt solid; border-top: windowtext; border-left: windowtext; border-bottom: windowtext 0.5pt solid; background-color: transparent;"&gt;2007&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this data as example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 180pt; border-collapse: collapse;" width="240"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 84pt; mso-width-source: userset; mso-width-alt: 4096;" width="112" /&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" colspan="2" height="20" style="width: 132pt; height: 15pt; background-color: white; mso-ignore: colspan; border: #f0f0f0;" width="176"&gt;Load * Inline[&lt;/TD&gt;&lt;TD class="xl65" style="width: 48pt; background-color: white; border: #f0f0f0;" width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" colspan="2" height="20" style="height: 15pt; background-color: white; mso-ignore: colspan; border: #f0f0f0;"&gt;Customer&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;USA&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;];&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" colspan="2" height="20" style="height: 15pt; background-color: white; mso-ignore: colspan; border: #f0f0f0;"&gt;Load * inline&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;[&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;Type&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;];&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;CUST:&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;Load&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;CustNo,&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" colspan="2" height="20" style="height: 15pt; background-color: white; mso-ignore: colspan; border: #f0f0f0;"&gt;Customer,&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;Type,&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;Country&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;Year&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" colspan="2" height="20" style="height: 15pt; background-color: white; mso-ignore: colspan; border: #f0f0f0;"&gt;from Customertable&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" colspan="2" height="20" style="height: 15pt; background-color: white; mso-ignore: colspan; border: #f0f0f0;"&gt;Where exists(Country);&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;CUST_1:&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;Load&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;CustNo,&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" colspan="2" height="20" style="height: 15pt; background-color: white; mso-ignore: colspan; border: #f0f0f0;"&gt;Customer,&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;Type,&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;Country&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; background-color: white; border: #f0f0f0;"&gt;Year&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" colspan="2" height="20" style="height: 15pt; background-color: white; mso-ignore: colspan; border: #f0f0f0;"&gt;resdient CUST&lt;/TD&gt;&lt;TD class="xl65" style="background-color: white; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" colspan="3" height="20" style="height: 15pt; background-color: white; mso-ignore: colspan; border: #f0f0f0;"&gt;Where Type = 'A' and Year = '2008';&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 132pt; border-collapse: collapse;" width="176"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 84pt; mso-width-source: userset; mso-width-alt: 4096;" width="112" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" colspan="2" height="20" style="width: 132pt; height: 15pt; background-color: white; mso-ignore: colspan; border: #f0f0f0;" width="176"&gt;drop table CUST;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I am dealing with millions of records connecting the CUST1 table;&lt;/P&gt;&lt;P&gt;CUST table is QVD optimized .CUST 1 is taking long time .How can Optimized better way for loading speed.&lt;/P&gt;&lt;P&gt;CUST1 table - based on 2 different condition - I need to load the data.&lt;/P&gt;&lt;P&gt;Please advise for optimizing the CUST1 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advance Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2009 02:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-Optimization-for-Resident-table/m-p/144818#M23625</guid>
      <dc:creator />
      <dc:date>2009-05-23T02:46:48Z</dc:date>
    </item>
    <item>
      <title>load  Optimization for Resident table</title>
      <link>https://community.qlik.com/t5/QlikView/load-Optimization-for-Resident-table/m-p/144819#M23626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0in 0in 0pt;"&gt;To get an optimized load, I believe you only get to use exists(), and can only apply it to a single field, which is what you're already doing with Country. So in a sense, you can't do any better than you already are.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;However, there's nothing to say that your single field can't be a compound field. So for maximum performance, you could add a new field to your QVD, like "Optimized Key", defined like "Country"&amp;amp;':'&amp;amp;"Type"&amp;amp;':'&amp;amp;"Year".&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Then do this:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;[Good Optimized Keys]:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Optimized Key&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;USA:A:2008&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;]&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;[Customer]:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;LOAD&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;CustNo&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;,Customer&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;,Type&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;,Country&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;,Year&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;,"Optimized Key"&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;WHERE EXISTS("Optimized Key")&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;DROP FIELD "Optimized Key"&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Now, that would get impractical if you have a lot of different countries, types and years that you want to load. But if the number is small, I bet it would give you very good load performance at the cost of a little complexity.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;(edit: Even if the number of combinations is large, you could probably generate the table of the combinations from the separate field values, and thus keep the high performance load without having the manually list all of the possible combinations of field values that you want.)&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;(edit: Continuing a little further with the idea of generating the table of keys, maybe something like this example for putting together a 4 field key with multiple values for each field:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;[Good Optimized Keys]:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;LOAD pick(mod(ceil(recno()/(4*5*6*1)),3)+1,'USA','Mexico','Canada')&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&amp;amp;':'&amp;amp;pick(mod(ceil(recno()/( 5*6*1)),4)+1,'A','B','C','D')&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&amp;amp;':'&amp;amp;pick(mod(ceil(recno()/( 6*1)),5)+1,'2001','2002','2004','2007','2008')&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&amp;amp;':'&amp;amp;pick(mod(ceil(recno()/( 1)),6)+1,'L','M','N','O','P','Q')&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AS "Optimized Key"&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AUTOGENERATE 3*4*5*6&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Alternatively, just have a loop for each. The above is basically mathematically simulating that without actually having all the loops. Yes, it could be shrunk down somewhat, but I wanted the structure of it to be as clear as possible, even if it isn't particularly clear.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2009 02:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-Optimization-for-Resident-table/m-p/144819#M23626</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-23T02:58:45Z</dc:date>
    </item>
    <item>
      <title>load  Optimization for Resident table</title>
      <link>https://community.qlik.com/t5/QlikView/load-Optimization-for-Resident-table/m-p/144820#M23627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following up on my post, there seems to be a MUCH simpler approach as long as you have enough RAM. Do your MOST restrictive selection with an exists(). In this case, I'm assuming that the country will narrow down the retrieved data more than the type or the year. Then do inner joins to inline tables to further restrict the data.&lt;/P&gt;&lt;P&gt;[Countries]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Country&lt;BR /&gt;USA&lt;BR /&gt;]&lt;BR /&gt;;&lt;BR /&gt;[Customers]:&lt;BR /&gt;LOAD&lt;BR /&gt; CustNo&lt;BR /&gt;,Customer&lt;BR /&gt;,Type&lt;BR /&gt;,Country&lt;BR /&gt;,Year&lt;BR /&gt;WHERE EXISTS("Country")&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN LOAD * INLINE [&lt;BR /&gt;Type&lt;BR /&gt;A&lt;BR /&gt;];&lt;BR /&gt;INNER JOIN LOAD * INLINE [&lt;BR /&gt;Year&lt;BR /&gt;2008&lt;BR /&gt;];&lt;BR /&gt;DROP TABLE [Countries]&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Your main load will be optimized, and the inner joins are very fast. That's definitely the approach I'd recommend over my previous one unless there is simply not enough RAM to pull in the data like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 06:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-Optimization-for-Resident-table/m-p/144820#M23627</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-06-03T06:27:12Z</dc:date>
    </item>
  </channel>
</rss>

