<?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: Reload new data only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080660#M930378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we don't have access to share any file..&lt;/P&gt;&lt;P&gt;I am working in Remote Machine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2016 22:23:48 GMT</pubDate>
    <dc:creator>Nagaraju_KCS</dc:creator>
    <dc:date>2016-03-15T22:23:48Z</dc:date>
    <item>
      <title>Reload new data only</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080653#M930371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have huge data, I am using 3 tier QVD Architecture..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QVD Generator&amp;nbsp; (Level 1&amp;nbsp; QVD's)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Intermediate Level (Level 2 QVD's)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final Application (Final Application)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Earlier i have developed &lt;STRONG&gt;Incremental&lt;/STRONG&gt; &lt;STRONG&gt;load.&amp;nbsp; (if i am using it's taking more time)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;My requirement i don't need to full reload every time, with out using &lt;STRONG&gt;incremental load.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Even my three application i have to reload only new data.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any good approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance...&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/Reload-new-data-only/m-p/1080653#M930371</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reload new data only</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080654#M930372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;how do you compare new data with the old ones ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 17:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080654#M930372</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2016-03-15T17:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reload new data only</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080655#M930373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An incremental load MEANS only loading new data. Only loading new data MEANS you're doing an incremental load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your incremental load is taking more time than a full load, it seems likely to me that your incremental load could be written better, or the underlying databases themselves need modifications, such as adding a field or an index to support the incremental load. It is difficult to diagnose without knowing the details of your databases, your indexes, and your incremental load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as some advice for figuring out what's wrong with your incremental load, where is the time being spent? Is it during the read of the database itself? Maybe there's an issue with your SQL (if it's SQL), or the database needs a field like change date to better support incremental load, or needs an index on the fields you're using. Is it during the concatenation of the existing QVD? Are you getting an optimized load? Anyway, figure out what part of the process is going slowly, and figure out how to speed it up, or ask for specific advice on the specific problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 17:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080655#M930373</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-03-15T17:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reload new data only</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080656#M930374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made sample data.... Actually i have SQL source.&lt;/P&gt;&lt;P&gt;is there anything wrong ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If i have any new data also.. it's loading full.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 18:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080656#M930374</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2016-03-15T18:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reload new data only</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080657#M930375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hard to tell from your sample qvw as you have edited it from your actual qvw that has the issue.&amp;nbsp; Apart from me having to frig force it to do one off Full Load to create an initial qvd as otherwise it just skips through and does nothing - maybe due to having more IF's than END IF's and some other issues, the incremental load itself does seem to work ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to share the log file from the reload of your real qvw ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 19:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080657#M930375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-15T19:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reload new data only</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080658#M930376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Bill says, your script does nothing due to various errors, but those errors may only be in your test script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have is likely the most efficient way of getting the max date as it should only have to read the symbol table for the date field, which is relatively small no matter how big the overall QVD is, so that should be fine even though it's unoptimized. I could create an optimized version, but it would likely be slower in practice, or at least no faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're loading in Excel data for step 1. Is that true of the real application? If it's actually from a QVD, for instance, your where predicate will not give you an optimized QVD load, and it would be easy to modify the script to do so - generate a list of dates from the previous max forward, and do where exists on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm unsure if your concatenate will be an optimized load or not in practice. Depending on how the IDs vs. dates work, another option would be to generate a list of dates prior to the max, and do a where exists on that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 20:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080658#M930376</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-03-15T20:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reload new data only</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080659#M930377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reading up a bit, it looks like the fastest way to get the max date is likely to be this:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dates:&amp;nbsp;&amp;nbsp; LOAD date FROM $(vQvdFile) (QVD) WHERE not exists(date);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;MaxDate: LOAD date(max(date),'YYYY-MM-DD') as maxdate RESIDENT Dates;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 20:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080659#M930377</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-03-15T20:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reload new data only</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080660#M930378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we don't have access to share any file..&lt;/P&gt;&lt;P&gt;I am working in Remote Machine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 22:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080660#M930378</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2016-03-15T22:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reload new data only</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080661#M930379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Bill and John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confusing....&lt;/P&gt;&lt;P&gt;Please can you tell error here....(how to optimize in this script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vQvdFile='D:\Incremental Load\step1.qvd';&lt;/P&gt;&lt;P&gt;SET vTableName='Step1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vQvdExists = if(FileSize('$(vQvdFile)') &amp;gt; 0, -1, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maxdateTab:&lt;/P&gt;&lt;P&gt;LOAD Date(max("date"),'YYYY-MM-DD') as maxdate&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM $(vQvdFile) (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vIncrementalExpression = 'Where ("date") &amp;gt;' &amp;amp; Chr(39) &amp;amp; peek('maxdate') &amp;amp; Chr(39);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP table maxdateTab;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1:&lt;/P&gt;&lt;P&gt;LOAD id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(date,'YYYY-MM-DD') as date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cost&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet3)&lt;/P&gt;&lt;P&gt;$(vIncrementalExpression);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE ($(vTableName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * FROM $(vQvdFile) (qvd)&lt;/P&gt;&lt;P&gt;WHERE NOT exists("date");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 22:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080661#M930379</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2016-03-15T22:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reload new data only</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080662#M930380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your sample script sets three variables and exits. The optimized version of your script is therefore three lines to set your variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SET vQvdFile='step1.qvd';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SET vTableName='Step1';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LET vQvdExists = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But yes, I realize that's not what you want. I can't really tell what you want, and I know this isn't your real script or loading from your real data source. So...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a relatively random example of something that kind of looks like maybe what you were trying to attempt to do. Since Date is what seems to distinguish old data from new data, we can load the old data first. We can then get the max date from that in what I believe is the fastest way. Then I'm loading random data intended to simulate your SQL database, and from that taking only what has a date greater than what we already loaded. It just auto-concatenates onto the existing data. Finally, store it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LET vMaxDate = num(makedate(2010));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;IF&amp;nbsp; filesize('Step1.qvd') THEN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Step1:&amp;nbsp; LOAD * FROM Step1.qvd (QVD);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxDate: LOAD num(max(fieldvalue('Date',recno()))) as MaxDate AUTOGENERATE fieldvaluecount('Date');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; LET vMaxDate = peek('MaxDate');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP TABLE MaxDate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;// This simulates the SQL to load from your actual database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;// You should have an index on the Date field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Step1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Date &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Cost &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHERE Date &amp;gt; $(vMaxDate)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;// This simulates the current state of your actual database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;// Most data will be at or below your max previous and won't be loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;// The data gets on average a little more recent each time to simulate running this every few days.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; num(ceil(rand()*999),'000') as ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,date($(vMaxDate)+ceil(rand()*400)-390) as Date&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,ceil(rand()*1000) as Cost&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;AUTOGENERATE 100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;STORE Step1 INTO Step1.qvd (QVD);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 00:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-new-data-only/m-p/1080662#M930380</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-03-16T00:06:48Z</dc:date>
    </item>
  </channel>
</rss>

