<?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: loop date column to load the data incremental in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/loop-date-column-to-load-the-data-incremental/m-p/2102550#M6974</link>
    <description>&lt;P&gt;Maybe something like this:&lt;/P&gt;
&lt;P&gt;for i = 0 to (today() - makedate(2020) - 1)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;let v = num(num#(text(date(makedate(2020) + $(i), 'YYYYMMDD')));&lt;BR /&gt;&amp;nbsp; &amp;nbsp;t: sql select * from YourTable where YourDate = $(v);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;store t into [t_$(V).qvd] (qvd); drop tables t;&lt;BR /&gt;next&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 13:18:57 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2023-08-04T13:18:57Z</dc:date>
    <item>
      <title>loop date column to load the data incremental</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/loop-date-column-to-load-the-data-incremental/m-p/2102351#M6969</link>
      <description>&lt;P&gt;I have a table A in sqlserver, and table A have snp_date column which is (YYYYMMDD)20200101, it has millions records, I cannot load in a big chunk, I want to loop column snp_date to load day by day to snowflake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you advise in detail how to achieve it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 03:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/loop-date-column-to-load-the-data-incremental/m-p/2102351#M6969</guid>
      <dc:creator>JimXu</dc:creator>
      <dc:date>2023-08-04T03:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: loop date column to load the data incremental</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/loop-date-column-to-load-the-data-incremental/m-p/2102358#M6970</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/239764"&gt;@JimXu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;P&gt;I'm not sure what difficulties you are facing however if you want to replicate a very big table, you may use &lt;A title="Parallel Load" href="https://help.qlik.com/en-US/replicate/May2023/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/Parallel_Load.htm#:~:text=Table%20Settings-,Parallel%20Load,be%20segmented%20by%20data%20ranges%2C%20by%20partitions%2C%20or%20by%20sub%2Dpartitions.,-Supported%20endpoints" target="_blank" rel="noopener"&gt;Parallel Load&lt;/A&gt; to speed up the full load process. You may use different data rangers, eg Partitions, sub-partitions, or you can define yourself segments boundaries, use date column etc.&lt;/P&gt;
&lt;P&gt;BTW, the supported source and target endpoints can be found &lt;A title="Supported endpoints" href="https://help.qlik.com/en-US/replicate/May2023/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/Parallel_Load.htm#:~:text=by%20sub%2Dpartitions.-,Supported%20endpoints,-The%20task%20must" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 04:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/loop-date-column-to-load-the-data-incremental/m-p/2102358#M6970</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-08-04T04:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: loop date column to load the data incremental</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/loop-date-column-to-load-the-data-incremental/m-p/2102550#M6974</link>
      <description>&lt;P&gt;Maybe something like this:&lt;/P&gt;
&lt;P&gt;for i = 0 to (today() - makedate(2020) - 1)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;let v = num(num#(text(date(makedate(2020) + $(i), 'YYYYMMDD')));&lt;BR /&gt;&amp;nbsp; &amp;nbsp;t: sql select * from YourTable where YourDate = $(v);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;store t into [t_$(V).qvd] (qvd); drop tables t;&lt;BR /&gt;next&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 13:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/loop-date-column-to-load-the-data-incremental/m-p/2102550#M6974</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-08-04T13:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: loop date column to load the data incremental</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/loop-date-column-to-load-the-data-incremental/m-p/2102683#M6977</link>
      <description>&lt;P&gt;Replicate does not have a looping construct, nor a delay construct. It does have a scheduler and 'passthru' queries.&lt;/P&gt;
&lt;P&gt;Let's first step back you your problem statement because it has several problems.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; I have a table A in sqlserver, and table A have snp_date column which is (YYYYMMDD)20200101&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Fine, but sloppy. To be clear the column is VARCHAR(8) and 20200101 is a sample value, possibly running all teh way to the current day?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;nbsp; it has millions records, &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Fine, but sloppy. millions of ROWS is no big deal. Per day perhaps? Are they extra-wide rows perhaps? many VARCHAR(MAX) columns? What is the total volume in GB per day or per year?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; I cannot load in a big chunk,&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;WHY NOT,&lt;/STRONG&gt; and if not in one chunk, how much can you handle? Source overload? Target overload? Network overload? Payd by the hour?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; I want to loop column snp_date to load day by day to snowflake.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;There is no loop construct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Day by day a day at a time? I guess not, as you'll never catch up. A day every hour? That'll take two days. Typically Snowflake just sneeze at a few million rows. Seconds, not minutes. It loves loading billions of rows.&lt;/P&gt;
&lt;P&gt;How long did it take to load a&amp;nbsp; large day in your testing (you did run several tests right?)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe, just maybe...&lt;/P&gt;
&lt;P&gt;- you can schedule a full load job every hour and calculate a day number to load for that hour in a passthru filter?&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;you can schedule a full load job every hour on the hour and use a join with VIEW in the passthru filter where that view is updated&amp;nbsp; by a SQL server job every hour on the half hour to point to a next day? If something stumble or if you are not ready change it to a non-existing (future) day and nothing will happen until researched and a fresh valid restart value is updated.&lt;/P&gt;
&lt;P&gt;- Replicate sends the load files in chunks (Advanced settings - &lt;SPAN&gt;Max file size (MB): - default 100 MB).&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Use a slow network link to make the chunks come in slow enough?&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; Could you advise in detail how to achieve it?&lt;/P&gt;
&lt;P&gt;Ha, you want details, and you provide little to none yourself. Hilarious.&lt;/P&gt;
&lt;P&gt;CHeers,&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 20:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/loop-date-column-to-load-the-data-incremental/m-p/2102683#M6977</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-08-04T20:45:23Z</dc:date>
    </item>
  </channel>
</rss>

