<?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 Advice on load optimization in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Advice-on-load-optimization/m-p/755582#M664252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Qlikview mainly with SAP, and I use the SAP connector to get data from the ERP.&lt;/P&gt;&lt;P&gt;I use a three tier structure with:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;QVDExtractor: In this folder, I put the QVWs that I use to extract the raw data from SAP. I only copy and paste the script given by the Script Builder application. The extracted QVDs are also in this folder.&lt;/LI&gt;&lt;LI&gt;QVDTransformation: In this folder, I put QVWs where I create generic QVDs for SAP objet (Customer_MasterData.qvd, Product_MasterData.qvd etc).&lt;/LI&gt;&lt;LI&gt;QVW: This is where I put the final applications.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created an application with about 15 millions rows in the fact table, which takes approximately 30 minutes to reload. While looking for advice on optimization, I learned more about optimized loads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this application, I have some code like the following one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate([FactTable])&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Invoice Number] AS %InvNumber_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [InvLine_Sales Document] AS %SalesDocument_Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp; [InvLine_Sales Document] &amp;amp;'/'&amp;amp; [InvLine_Sales Document Item] AS %SalesDocumentItem_Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Sold-to Party]&amp;amp;'/'&amp;amp;[Inv_Division]&amp;amp;'/'&amp;amp;[Inv_Sales Organization]&amp;amp;'/01' AS %Customer_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Sold-to Party]&amp;amp;'/'&amp;amp;[Inv_Division]&amp;amp;'/'&amp;amp;[Inv_Sales Organization]&amp;amp;'/01' AS %Security_Match,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date([Inv_Billing Date]) AS %InvDate_Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date([Inv_Billing Date]) AS %MainDate_Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Document Condition]&amp;amp;'/'&amp;amp;[InvLine_Billing Item] AS [%InvLineCondition_Key],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Division] AS %Division,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Sales Organization] AS %SalesOrganization, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Upper([Inv_Sales Organization Description]) AS %SalesOrganizationDescription,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; 'Invoice' AS [%Type]&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM $(vDirQVDTransformation)XXXX.qvd (qvd)&lt;/P&gt;&lt;P&gt;WHERE Date([Inv_Billing Date])&amp;gt;=$(vStartDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I understood, I have a lot of things to improve to have an optimized load. In the following case, does this mean that ;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I should change the format of [Inv_Billing Date] and other fields like that directly in the QVD Transformation folder, and not in the final application?&lt;/LI&gt;&lt;LI&gt;I should create keys directly in the QVD Transformation as well? For instance, %Customer_Key links my fact table to my customer table, and I was always advised to create keys in the final application; In this case, should I create a field like [Inv_Sold-to Party]&amp;amp;'/'&amp;amp;[Inv_Division]&amp;amp;'/'&amp;amp;[Inv_Sales Organization]&amp;amp;'/01' AS [Inv_LinkToCustomerTable] directly in my QVDTransformation, where I will make my calculations anyway?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your insight in advance. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2015 13:26:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-08T13:26:34Z</dc:date>
    <item>
      <title>Advice on load optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-on-load-optimization/m-p/755582#M664252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Qlikview mainly with SAP, and I use the SAP connector to get data from the ERP.&lt;/P&gt;&lt;P&gt;I use a three tier structure with:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;QVDExtractor: In this folder, I put the QVWs that I use to extract the raw data from SAP. I only copy and paste the script given by the Script Builder application. The extracted QVDs are also in this folder.&lt;/LI&gt;&lt;LI&gt;QVDTransformation: In this folder, I put QVWs where I create generic QVDs for SAP objet (Customer_MasterData.qvd, Product_MasterData.qvd etc).&lt;/LI&gt;&lt;LI&gt;QVW: This is where I put the final applications.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created an application with about 15 millions rows in the fact table, which takes approximately 30 minutes to reload. While looking for advice on optimization, I learned more about optimized loads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this application, I have some code like the following one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate([FactTable])&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Invoice Number] AS %InvNumber_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [InvLine_Sales Document] AS %SalesDocument_Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp; [InvLine_Sales Document] &amp;amp;'/'&amp;amp; [InvLine_Sales Document Item] AS %SalesDocumentItem_Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Sold-to Party]&amp;amp;'/'&amp;amp;[Inv_Division]&amp;amp;'/'&amp;amp;[Inv_Sales Organization]&amp;amp;'/01' AS %Customer_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Sold-to Party]&amp;amp;'/'&amp;amp;[Inv_Division]&amp;amp;'/'&amp;amp;[Inv_Sales Organization]&amp;amp;'/01' AS %Security_Match,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date([Inv_Billing Date]) AS %InvDate_Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date([Inv_Billing Date]) AS %MainDate_Key, &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Document Condition]&amp;amp;'/'&amp;amp;[InvLine_Billing Item] AS [%InvLineCondition_Key],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Division] AS %Division,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Inv_Sales Organization] AS %SalesOrganization, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Upper([Inv_Sales Organization Description]) AS %SalesOrganizationDescription,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; 'Invoice' AS [%Type]&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM $(vDirQVDTransformation)XXXX.qvd (qvd)&lt;/P&gt;&lt;P&gt;WHERE Date([Inv_Billing Date])&amp;gt;=$(vStartDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I understood, I have a lot of things to improve to have an optimized load. In the following case, does this mean that ;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I should change the format of [Inv_Billing Date] and other fields like that directly in the QVD Transformation folder, and not in the final application?&lt;/LI&gt;&lt;LI&gt;I should create keys directly in the QVD Transformation as well? For instance, %Customer_Key links my fact table to my customer table, and I was always advised to create keys in the final application; In this case, should I create a field like [Inv_Sold-to Party]&amp;amp;'/'&amp;amp;[Inv_Division]&amp;amp;'/'&amp;amp;[Inv_Sales Organization]&amp;amp;'/01' AS [Inv_LinkToCustomerTable] directly in my QVDTransformation, where I will make my calculations anyway?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your insight in advance. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 13:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-on-load-optimization/m-p/755582#M664252</guid>
      <dc:creator />
      <dc:date>2015-01-08T13:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Advice on load optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-on-load-optimization/m-p/755583#M664253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;With a big recommendation: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.packtpub.com/big-data-and-business-intelligence/mastering-qlikview" rel="nofollow"&gt;https://www.packtpub.com/big-data-and-business-intelligence/mastering-qlikview&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 15:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-on-load-optimization/m-p/755583#M664253</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-01-08T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Advice on load optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-on-load-optimization/m-p/755584#M664254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, that was a great read. Thanks. It is much clearer now.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 13:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-on-load-optimization/m-p/755584#M664254</guid>
      <dc:creator />
      <dc:date>2015-01-15T13:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Advice on load optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-on-load-optimization/m-p/755585#M664255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answering your questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I should change the format of [Inv_Billing Date] and other fields like that directly in the QVD Transformation folder, and not in the final application? &lt;UL&gt;&lt;LI&gt;Yes, all transformation should be done at transformation&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I should create keys directly in the QVD Transformation as well? For instance, %Customer_Key links my fact table to my customer table, and I was always advised to create keys in the final application; In this case, should I create a field like [Inv_Sold-to Party]&amp;amp;'/'&amp;amp;[Inv_Division]&amp;amp;'/'&amp;amp;[Inv_Sales Organization]&amp;amp;'/01' AS [Inv_LinkToCustomerTable] directly in my QVDTransformation, where I will make my calculations anyway?&lt;UL&gt;&lt;LI&gt;Yes, all transformation should be done at transformation&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&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;This clause&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;WHERE Date([Inv_Billing Date])&amp;gt;=$(vStartDate); will prevent an optimized load, but there´s a workaround&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;1) Load all dates that needs to be loaded to a table (search the community for a table&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;2) Change your WHERE clause to&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;WHERE exists(YouDateField,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Inv_Billing Date])&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 13:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-on-load-optimization/m-p/755585#M664255</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-01-15T13:45:19Z</dc:date>
    </item>
  </channel>
</rss>

