<?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 Question: Concatinate a incremental load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-Concatinate-a-incremental-load/m-p/1275023#M864677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hello almighty Qlikview guru's,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am a pretty newbie if it comes to Qlikview and can use some help with my incremental load.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Currently i'm coding&amp;nbsp; a incremental load of my sales lines which with a lot of reading and trial and error works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It is a bit slow, and was wondering if i can optimize my loading speed any further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What i have is so far is this code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;Verkooporderregels:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE([datum-aanmaak]) as [datum-aanmaak]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;FROM $(vStoreInitial)Verkooporderregels.QVD (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;Temp2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;LOAD date(max([datum-aanmaak])) as MaxDate2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;Resident Verkooporderregels;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;LET vStartDate2 = peek('MaxDate2',-1,'Temp2');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;DROP Table Verkooporderregels;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;Incremental_VKORGL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;LOAD *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;SQL SELECT *&amp;nbsp; FROM PUB."va-211"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;WHERE (cdadmin = '02' or cdadmin = '03' or cdadmin = '05') and ("datum-aanmaak" &amp;gt;= '$(vStartDate2)');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;Concatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM $(vStoreInitial)Verkooporderregels.QVD (qvd) where not Exists (%KEYORDRGL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;STORE Incremental_VKORGL into $(vStoreIncremental)Verkooporderregels.QVD (Qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;DROP Table Incremental_VKORGL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;All order lines have 3 unique values which, when stuck together make a unique master key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;These field are called cdadmin, cdorder &amp;amp; nrordrgl. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;cdadmin lets me know which group they come out of, cdorder is the unique order number and nrordrgl lets me know which line it is pointing to. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In my concatenate table i have tried to include the string&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I've created a %KEY value in the initial load (&lt;SPAN style="color: #333399;"&gt;Load cdadmin&amp;amp;'-'&amp;amp;cdorder&amp;amp;'-'&amp;amp;nrordrgl as %KEYORDRGL&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;And then concatenate as seen in my script above. The concatenate function did have the output needed...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now i have all the lines needed only it takes up a pretty long time to load.. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My initial load is about 24 minutes, and then my incremental load which takes 15 minutes. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The total rows i have now: 7 745 512. is there any way i can optimize my load to make it run faster? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks for you attention!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Question: Concatinate a incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Question-Concatinate-a-incremental-load/m-p/1275023#M864677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hello almighty Qlikview guru's,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am a pretty newbie if it comes to Qlikview and can use some help with my incremental load.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Currently i'm coding&amp;nbsp; a incremental load of my sales lines which with a lot of reading and trial and error works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It is a bit slow, and was wondering if i can optimize my loading speed any further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What i have is so far is this code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;Verkooporderregels:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE([datum-aanmaak]) as [datum-aanmaak]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;FROM $(vStoreInitial)Verkooporderregels.QVD (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;Temp2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;LOAD date(max([datum-aanmaak])) as MaxDate2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;Resident Verkooporderregels;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;LET vStartDate2 = peek('MaxDate2',-1,'Temp2');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;DROP Table Verkooporderregels;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;Incremental_VKORGL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;LOAD *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;SQL SELECT *&amp;nbsp; FROM PUB."va-211"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;WHERE (cdadmin = '02' or cdadmin = '03' or cdadmin = '05') and ("datum-aanmaak" &amp;gt;= '$(vStartDate2)');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;Concatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM $(vStoreInitial)Verkooporderregels.QVD (qvd) where not Exists (%KEYORDRGL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;STORE Incremental_VKORGL into $(vStoreIncremental)Verkooporderregels.QVD (Qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 10pt;"&gt;DROP Table Incremental_VKORGL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;All order lines have 3 unique values which, when stuck together make a unique master key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;These field are called cdadmin, cdorder &amp;amp; nrordrgl. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;cdadmin lets me know which group they come out of, cdorder is the unique order number and nrordrgl lets me know which line it is pointing to. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In my concatenate table i have tried to include the string&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I've created a %KEY value in the initial load (&lt;SPAN style="color: #333399;"&gt;Load cdadmin&amp;amp;'-'&amp;amp;cdorder&amp;amp;'-'&amp;amp;nrordrgl as %KEYORDRGL&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;And then concatenate as seen in my script above. The concatenate function did have the output needed...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now i have all the lines needed only it takes up a pretty long time to load.. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My initial load is about 24 minutes, and then my incremental load which takes 15 minutes. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The total rows i have now: 7 745 512. is there any way i can optimize my load to make it run faster? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks for you attention!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-Concatinate-a-incremental-load/m-p/1275023#M864677</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question: Concatinate a incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Question-Concatinate-a-incremental-load/m-p/1275024#M864678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there are possibilities. One would be only to load those fields which are really needed and not with a wildcard of "*" all fields. Even if you really need all fields somewhere does this mean you must do thisin this and/or within a single task. To distribute such a task will rather not reduce the load-times over all but it could be fit better in certain task-windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside them there are faster methods to get the max. value from a field instead of doing an aggregation-load over a resident-load, see: &lt;A href="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/" title="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/"&gt;“Fastest” Method to Read max(field) From a QVD | Qlikview Cookbook&lt;/A&gt;. Whereby in your case I wouldn't do this at all - I would read the max. value from the field after your concatenating and store it within the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Dec 2016 06:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-Concatinate-a-incremental-load/m-p/1275024#M864678</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-12-17T06:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question: Concatinate a incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Question-Concatinate-a-incremental-load/m-p/1275025#M864679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;Using your link I've dramatically improved my loading speed. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 11:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-Concatinate-a-incremental-load/m-p/1275025#M864679</guid>
      <dc:creator />
      <dc:date>2016-12-21T11:18:15Z</dc:date>
    </item>
  </channel>
</rss>

