<?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: Incremental load using a unique sequential ID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655219#M1065830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did think of using where not exists (ID) but for some reason I thought this would be much slower to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So load the DVD first and then the ERP data with where not exists (ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I will try both and see if there is a difference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2014 12:42:19 GMT</pubDate>
    <dc:creator>robert99</dc:creator>
    <dc:date>2014-09-09T12:42:19Z</dc:date>
    <item>
      <title>Incremental load using a unique sequential ID</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655217#M1065828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At work Ive been told (I need to confirm this) that in the main ERP system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Records are never changed or deleted&lt;/P&gt;&lt;P&gt;Records (lines) always have a modification time and numerical unique ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on this it seems an ID (rather than modification time) could be used for an incremental load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the pros and Cons of using an ID rather than time?&lt;/P&gt;&lt;P&gt;How should this be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have listed one attempt below. Is this OK or is there a better way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATALOAD:&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;(qvd);&lt;/D&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDPEEK:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;RESIDENT DATALOAD&lt;/P&gt;&lt;P&gt;ORDER by ID;&lt;/P&gt;&lt;P&gt;LET vLastID = PEEK ('ID',-1,'IDPEEK') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATALOAD:&lt;/P&gt;&lt;P&gt;Concatenate (DATALOAD)&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ID, Type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100, AAA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 101, BBB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102, CCC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 103, DDD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 104,WWW&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 105,CCC&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE ID &amp;gt; $(vLastID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP TABLE IDPEEK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE DATALOAD INTO &lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 11:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655217#M1065828</guid>
      <dc:creator>robert99</dc:creator>
      <dc:date>2014-09-09T11:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using a unique sequential ID</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655218#M1065829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use the ID because it will be an integer-value and modification-time will be a float-value and mustn't be unique. Further you could use exists() as where-condition instead from IDPEEK-Load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where not exists(ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 12:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655218#M1065829</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-09T12:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using a unique sequential ID</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655219#M1065830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did think of using where not exists (ID) but for some reason I thought this would be much slower to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So load the DVD first and then the ERP data with where not exists (ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I will try both and see if there is a difference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 12:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655219#M1065830</guid>
      <dc:creator>robert99</dc:creator>
      <dc:date>2014-09-09T12:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using a unique sequential ID</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655220#M1065831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exists is the only possibility to use a where-condition with an optimized load so it is the fastest way to load - see here: &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/docs/DOC-2641" title="http://community.qlik.com/docs/DOC-2641"&gt;http://community.qlik.com/docs/DOC-2641&lt;/A&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>Tue, 09 Sep 2014 12:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655220#M1065831</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-09T12:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using a unique sequential ID</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655221#M1065832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here a useful addition: &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/docs/DOC-7020" title="http://community.qlik.com/docs/DOC-7020"&gt;http://community.qlik.com/docs/DOC-7020&lt;/A&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>Tue, 09 Sep 2014 13:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655221#M1065832</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-09T13:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using a unique sequential ID</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655222#M1065833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive tested using excel and it made little difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The qvd load took under 1 sec (and it was optimised as I loaded everything). But the Excel load took about a minute regardless of approach used. ie if I loaded everything (No qvd)&amp;nbsp; or nothing (100% from qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So excel is not the best to test with. Searching excel to see if a record should be loaded took as long as loading the record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will test at work tomorrow and record the results. I just thought the database having a selection to be more than (using peek) would take less time than comparing every field line with another table. But I will be interested to see what the results are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the same then I would use where not exists&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 14:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655222#M1065833</guid>
      <dc:creator>robert99</dc:creator>
      <dc:date>2014-09-09T14:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using a unique sequential ID</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655223#M1065834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Testing at work finished&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where not exists did not work with the database. &lt;/P&gt;&lt;P&gt;I tried preceding load as well and it also did not work. Maybe I did sometime wrong ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But peek was very quick. So I will use peek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 09:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-a-unique-sequential-ID/m-p/655223#M1065834</guid>
      <dc:creator>robert99</dc:creator>
      <dc:date>2014-09-11T09:59:35Z</dc:date>
    </item>
  </channel>
</rss>

