<?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 Extract data in smaller chunks (loop) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-data-in-smaller-chunks-loop/m-p/1904005#M1217836</link>
    <description>&lt;DIV class="MessageInResponseTo lia-component-message-view-widget-in-response-to lia-component-in-response-to"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="bodyDisplay" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Hi everyone.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to extract a table from our data warehouse with approx. 10 million records. It keeps timing out, so the DB team have suggested pulling the data in chucks instead of doing 1 single load.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help in what I need to do to write a loop around my table load please?&lt;/P&gt;
&lt;P&gt;The loop will just need to be on the number of records not on a date/month/year or any other field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so i would extract the first 100,000 records, then loop to the start and extract records 100,001 to 200,001 etc, until all records have been extracted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 11 Mar 2022 10:13:04 GMT</pubDate>
    <dc:creator>CNH_1978</dc:creator>
    <dc:date>2022-03-11T10:13:04Z</dc:date>
    <item>
      <title>Extract data in smaller chunks (loop)</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-data-in-smaller-chunks-loop/m-p/1904005#M1217836</link>
      <description>&lt;DIV class="MessageInResponseTo lia-component-message-view-widget-in-response-to lia-component-in-response-to"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="bodyDisplay" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Hi everyone.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to extract a table from our data warehouse with approx. 10 million records. It keeps timing out, so the DB team have suggested pulling the data in chucks instead of doing 1 single load.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help in what I need to do to write a loop around my table load please?&lt;/P&gt;
&lt;P&gt;The loop will just need to be on the number of records not on a date/month/year or any other field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so i would extract the first 100,000 records, then loop to the start and extract records 100,001 to 200,001 etc, until all records have been extracted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Mar 2022 10:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-data-in-smaller-chunks-loop/m-p/1904005#M1217836</guid>
      <dc:creator>CNH_1978</dc:creator>
      <dc:date>2022-03-11T10:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data in smaller chunks (loop)</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-data-in-smaller-chunks-loop/m-p/1904042#M1217844</link>
      <description>&lt;P&gt;in data do u have any fields like country or region like geographical data, then extract data using these fields like&lt;/P&gt;
&lt;P&gt;sel * from table where country='IND';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sel * from table where country='AUS'&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 11:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-data-in-smaller-chunks-loop/m-p/1904042#M1217844</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2022-03-11T11:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data in smaller chunks (loop)</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-data-in-smaller-chunks-loop/m-p/1904045#M1217845</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;Unfortunately not, its route data (long and lat) the only fields in this specific table is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RouteID&lt;/P&gt;
&lt;P&gt;Long&lt;/P&gt;
&lt;P&gt;Lat&lt;/P&gt;
&lt;P&gt;Its then linked to other tables on the RouteID field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So i need to extract small chunks of the data at a time, i guess based on the ROWNO()&lt;/P&gt;
&lt;P&gt;So I would need the loop to start at row 0-1000, then the next loop would extract 1001-2001 etc until all records have been extracted.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 11:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-data-in-smaller-chunks-loop/m-p/1904045#M1217845</guid>
      <dc:creator>CNH_1978</dc:creator>
      <dc:date>2022-03-11T11:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data in smaller chunks (loop)</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-data-in-smaller-chunks-loop/m-p/1904081#M1217849</link>
      <description>&lt;P&gt;I think I wouldn't loop on a record-level else just using a rounding on lat or long like round(lat, 9) to get theoretically 20 chunks for the possible -90° to 90°. Depending on the real existing lat/long in your data and/or the writing-syntax in which the data are stored you may adjust the rounding to get rather equally sized chunks.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 13:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-data-in-smaller-chunks-loop/m-p/1904081#M1217849</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-03-11T13:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data in smaller chunks (loop)</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-data-in-smaller-chunks-loop/m-p/1904321#M1217856</link>
      <description>&lt;P&gt;the real existing lat/long in your data and/or the writing-syntax in which the data are stored you may adjust the rounding to get rather equally sized chunks.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#FFFFFF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;A title="QuickPayPortal" href="https://www.quickpayportal.one/" target="_self"&gt;&lt;FONT color="#FFFFFF"&gt;QuickPayPortal&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 04:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-data-in-smaller-chunks-loop/m-p/1904321#M1217856</guid>
      <dc:creator>Davis69</dc:creator>
      <dc:date>2022-04-04T04:26:01Z</dc:date>
    </item>
  </channel>
</rss>

