<?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: Append a rownumber to a table quickly in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854007#M1215804</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&amp;nbsp; if you could advise something here.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Nov 2021 06:32:19 GMT</pubDate>
    <dc:creator>SRT10</dc:creator>
    <dc:date>2021-11-01T06:32:19Z</dc:date>
    <item>
      <title>Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1853858#M1215787</link>
      <description>&lt;P&gt;Have a data of about ~85,177,324 records in a qlik memory table. I need to assign a rownumber to each record. How can i do it quickly. The above data set is concatenated into a table from various qvds and now I need to have a rownumber to each record entry. Rowno() is taking lot of time to do this and exract takes about one hour to get loaded.&lt;/P&gt;
&lt;P&gt;Is there any optimised way to do this..&lt;/P&gt;
&lt;P&gt;Data as of now..&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 144pt;" border="0" width="192" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="64" height="19" class="xl63" style="height: 14.5pt; width: 48pt;"&gt;Name&lt;/TD&gt;
&lt;TD width="64" class="xl63" style="border-left: none; width: 48pt;"&gt;Address&lt;/TD&gt;
&lt;TD width="64" class="xl63" style="border-left: none; width: 48pt;"&gt;pincode&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;abc&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;aaa&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;123&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;xyz&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;sss&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3432&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;pqr&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;fff&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4324&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;.&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;.&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;.&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;.&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;.&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;.&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output&lt;/P&gt;
&lt;TABLE width="263"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="71"&gt;Rowno&lt;/TD&gt;
&lt;TD width="64"&gt;Name&lt;/TD&gt;
&lt;TD width="64"&gt;Address&lt;/TD&gt;
&lt;TD width="64"&gt;pincode&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;abc&lt;/TD&gt;
&lt;TD&gt;aaa&lt;/TD&gt;
&lt;TD&gt;123&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;xyz&lt;/TD&gt;
&lt;TD&gt;sss&lt;/TD&gt;
&lt;TD&gt;3432&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;pqr&lt;/TD&gt;
&lt;TD&gt;fff&lt;/TD&gt;
&lt;TD&gt;4324&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;85,177,324&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i am using rowno() while reading data from each qvd then it is making load unoptimised. Is there any optimised way to do this considering large data set&lt;/P&gt;</description>
      <pubDate>Sat, 30 Oct 2021 11:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1853858#M1215787</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2021-10-30T11:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1853971#M1215800</link>
      <description>&lt;P&gt;Load from the QVD, but add a preceding load to it or a resident load to add in the rowno.&lt;/P&gt;&lt;P&gt;eg..&lt;/P&gt;&lt;P&gt;Load Rowno(), *;&lt;/P&gt;&lt;P&gt;Load Name, Address.....&amp;nbsp; &amp;nbsp; ;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 21:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1853971#M1215800</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2021-10-31T21:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854006#M1215803</link>
      <description>&lt;P&gt;Thanks Lisa.. this is working but this is taking time to load data. I need something which can be quickly achieved. Not sure if I am asking for more here. Is this achievable&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 05:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854006#M1215803</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2021-11-01T05:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854007#M1215804</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&amp;nbsp; if you could advise something here.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 06:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854007#M1215804</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2021-11-01T06:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854175#M1215810</link>
      <description>&lt;P&gt;If you have an unique key within the data you may use it within an autonumber script-statement (if the origin key-information are further needed you would need to duplicate the field in beforehand). If not you could apply a logic like Lisa suggested whereby I could imagine that a resident-load may be more performant as a preceeding-approach. In general you couldn't get the rowno-id without any costs ...&lt;/P&gt;
&lt;P&gt;A partly alternatively might be to include recno() and a source-information within the qvd's to be able to track each record from any source.&lt;/P&gt;
&lt;P&gt;Beside this are you sure that you really need this kind of information within your application? Because such a measure could increase the needed RAM and storage space enormously and therefore it needs very good reasons to implement such information. Personally I have nowhere these information within a final application - during the development they are very helpful to validate the data but after that they have usually more disadvantages than benefits.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 12:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854175#M1215810</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-11-01T12:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854344#M1215813</link>
      <description>&lt;P&gt;I think simplest is best here. Stick with the optimized load and add the RecId in a simple resident load like this:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;data2:&lt;BR /&gt;&lt;/SPAN&gt;NoConcatenate&lt;SPAN class="s1"&gt;&lt;BR /&gt;&lt;/SPAN&gt;LOAD&lt;SPAN class="s1"&gt; *, &lt;/SPAN&gt;&lt;STRONG&gt;RecNo&lt;SPAN class="s1"&gt;() &lt;/SPAN&gt;&lt;/STRONG&gt;as &lt;SPAN class="s2"&gt;RecId&lt;/SPAN&gt; Resident&lt;SPAN class="s1"&gt; data;&lt;BR /&gt;&lt;/SPAN&gt;Drop Table&lt;SPAN class="s1"&gt; data;&lt;BR /&gt;&lt;/SPAN&gt;Rename table&lt;SPAN class="s1"&gt; data2 &lt;/SPAN&gt;to&lt;SPAN class="s1"&gt; data;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;In my testing I could do about 2M rows per second. If you had similar results, it would only add about 45 seconds to your load.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;BTW, it's very important to &lt;STRONG&gt;use RecNo() rather than RowNo()&lt;/STRONG&gt; here.&amp;nbsp; RecNo() will be 3-4 times faster than RowNo() in this case.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 17:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854344#M1215813</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-11-01T17:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854379#M1215814</link>
      <description>&lt;P&gt;Tried this but this is loading only thousands of records per second which is causing this to be very very slow. Is this because there are many columns in source table ?&lt;BR /&gt;Why is this happening with us. What could be the issue here. Code is almost similar to your one. It took 12 min to load data to a table using recno()&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 19:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854379#M1215814</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2021-11-01T19:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854483#M1215819</link>
      <description>&lt;P&gt;Can you post the portion of your script where you are assigning the RecNo()?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 03:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854483#M1215819</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-11-02T03:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854508#M1215820</link>
      <description>&lt;P&gt;This is how it looks..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;LOAD $(GenColList) // This has 99 columns&lt;BR /&gt;FROM $(vFile_Path)$(vFile_Name) (qvd);&lt;/P&gt;
&lt;P&gt;Data2:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD *,RecNo() AS Sequence Resident Data;&lt;BR /&gt;Drop Table Data;&lt;BR /&gt;Rename table Data2 to Data;&lt;/P&gt;
&lt;P&gt;STORE Data INTO D:\Qlikview\Output\Data.QVD (QVD);&lt;/P&gt;
&lt;P&gt;DROP TABLE Data;&lt;/P&gt;
&lt;P&gt;Call RecordLoadTime('Data');&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 06:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854508#M1215820</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2021-11-02T06:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854708#M1215828</link>
      <description>&lt;P&gt;It looks now that you are loading from a single qvd - if so you could include the recno/rowno already within the creation of this file. In regard to the load-performance take a look on the available resources of the RAM because if there happens any swapping to the virtual RAM the performance will decrease significantly.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 14:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854708#M1215828</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-11-02T14:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854745#M1215830</link>
      <description>&lt;P&gt;I can't do this while creating the qvd.. reason being there ar various qvd from various source and I will be reading data accordingly and then appending rowno or recno. so it has to be here so that number can be in sequence for each different qvd..&lt;/P&gt;
&lt;P&gt;Ex - 1 to 100 for qvd 1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;101 to 200 for qvd 2 and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't do this at the creation of qvds as we won't be sure how many records will be there in 1st and 2nd file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So plan is to have rec no or row no during this stage where we are aggregating all the 5 qvds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 14:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854745#M1215830</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2021-11-02T14:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854772#M1215831</link>
      <description>&lt;P&gt;Especially in this case won't your&amp;nbsp;intended approach lead you to a sensible tracking of the records. You will get a&amp;nbsp;sequentially number but you couldn't identify with it where it comes&amp;nbsp;from - at least not if you had only this information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This means you need more and other information like some hard-coded: 'xyz' as SOURCE and/or filebasename()&amp;nbsp; as FILE to track the file-name and/or subfield(filename(), '\', -2) as FOLDER to fetch more hierarchically details and/or a recno/rowno - everything what you might need should be done by creating the qvd's.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 15:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854772#M1215831</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-11-02T15:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854840#M1215832</link>
      <description>&lt;P&gt;Source detail information is already mentioned in each respective qvd. So we can track that way to identify from were the data is coming.&lt;/P&gt;
&lt;P&gt;++&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;Could you please post your code which is loading million of records in a second. Am I missing something here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Code..&lt;/P&gt;
&lt;P&gt;Data2:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD *,RecNo() AS Sequence Resident Data;&lt;BR /&gt;Drop Table Data;&lt;BR /&gt;Rename table Data2 to Data;&lt;/P&gt;
&lt;P&gt;STORE Data INTO D:\Qlikview\Output\Data.QVD (QVD);&lt;/P&gt;
&lt;P&gt;DROP TABLE Data;&lt;/P&gt;
&lt;P&gt;Call RecordLoadTime('Data');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This loads only thousands of records per second.. 12 min for each block, at the end entire extract is taking approx. 60 min to load data from 5 different sources&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Honestly it will be a great help for us &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 18:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854840#M1215832</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2021-11-02T18:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854873#M1215833</link>
      <description>&lt;P&gt;Here is my test code for 10M rows.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'A' &amp;amp; div(RecNo(),2) as A&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,'A' &amp;amp; div(RecNo(),5) as B&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,'A' &amp;amp; div(RecNo(),10) as C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,'A' &amp;amp; div(RecNo(),100) as D&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,'A' &amp;amp; div(RecNo(),500) as E&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,'A' &amp;amp; div(RecNo(),1000) as F&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;AutoGenerate 1e7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Store data into data.qvd (qvd);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Drop Table data;&lt;BR /&gt;data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Load * From data.qvd (qvd);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data2:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;NoConcatenate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD *, RecNo() as RecId Resident data;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Drop Table data;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Rename table data2 to data;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;On a 4 core 32GB laptop here's the timing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1st&amp;nbsp; Load:&amp;nbsp; 9 seconds&lt;BR /&gt;2nd Load: 2 seconds&lt;BR /&gt;3rd Load (recno): 5 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I'm curious to hear results for this same script on your system.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 20:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1854873#M1215833</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-11-02T20:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1855054#M1215840</link>
      <description>&lt;P&gt;If you could track the records what is the purpose of having another record-id?&lt;/P&gt;
&lt;P&gt;Beside this I could confirm the load-times from Rob's example within a similar environment of 4 cores and 16 GB RAM whereby each statement took 1 second more (only one trial without looking on other processes/resources).&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 11:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1855054#M1215840</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-11-03T11:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1855487#M1215854</link>
      <description>&lt;P&gt;For million of rows and a lot of columns a resident load ist not every time a good option, because it needs much more memory.&lt;/P&gt;
&lt;P&gt;Let's have two QVDs, each has 48.7M rows and 157 columns.&lt;/P&gt;
&lt;P&gt;Example 1:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;A:
Load
*
from "QVD 1.qvd" (qvd);

Concatenate(A)
Load
*
from "QVD 2.qvd" (qvd);

B:
load
RecNo() as RowNo,
*
Resident A;

drop table A;&lt;/LI-CODE&gt;
&lt;P&gt;Runtime: 8:33&lt;BR /&gt;Peak working set: 44.7GB&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Example 2:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;A:
Load
RecNo() as RowNo,
*
from "QVD 1.qvd" (qvd);

let nor=NoOfRows('A');

Concatenate(A)
Load
$(nor)+RecNo() as RowNo,
*
from "QVD 2.qvd" (qvd);&lt;/LI-CODE&gt;
&lt;P&gt;Runtime: 6:44 &lt;BR /&gt;Peak working set: 26.4GB&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;So it depends on how much memory is available and how fast is the memory.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 11:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1855487#M1215854</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2021-11-04T11:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1856250#M1215901</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;
&lt;P&gt;Scenario 1:&lt;/P&gt;
&lt;P&gt;I tried your code in new application and it got completed within few seconds. This was awesome..&lt;BR /&gt;But when I replicate similar pattern of code in my application it was time consuming.&lt;/P&gt;
&lt;P&gt;What can be the issue ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Scenario 2:&lt;BR /&gt;have also observed that if I am reading my final qvd in your code then it is working fine for me. but in my application it is not working in optimized fashion.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Scenario 3:&lt;/P&gt;
&lt;P&gt;If I create new tab and add your code in new tab and read data from my final qvd instead of data qvd then again it is taking time to append recno&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Server Configuration :&lt;/P&gt;
&lt;P&gt;20 Core , 512 Gb Ram&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Nov 2021 07:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1856250#M1215901</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2021-11-06T07:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1856254#M1215904</link>
      <description>&lt;P&gt;Only if you load a single table within a script you will load THIS table. If there are more loadings the loads may effect on each other.&lt;/P&gt;
&lt;P&gt;This is related to the way how the data are stored - each field with its distinct values is stored within an own system-table and a data-table with a bit-stuffed pointer to the system-tables. This means each further load will check if a field already exists and if it runs through this table to check if the value already exists and if not it makes a new entry there and adds the pointer to the data-table, too but if the value exists it takes the existing pointer-value and adds it to the data-table.&lt;/P&gt;
&lt;P&gt;Therefore it's not meaningless in which order the loads are executed. Within the most scenarios it won't be relevant and not be noticed but if you hit any timely or resource-depended threshold it may be worth to look on the matter from this point of view.&lt;/P&gt;
&lt;P&gt;Further related to the above mentioned data-handling are also measures like loading distinct or setting null-variables or system-variables like verbatim or similar things which may force a processing of the data.&lt;/P&gt;
&lt;P&gt;Therefore I suggest to review your code in this way and also if it could be divided into multiple tasks/applications. Of course the last measure increased the overhead but the smaller tasks could be easier developed/maintained and they could in general run in parallel and/or within other time-frames.&lt;/P&gt;
&lt;P&gt;Beside this all I recommend again to consider if this recno is really expedient - a quite good explanation to what it leads could you find here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Importance-Of-Being-Distinct/ba-p/1466796" target="_blank"&gt;The Importance Of Being Distinct - Qlik Community - 1466796&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;which means you should have a good purpose to add such fields to your data.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Sat, 06 Nov 2021 09:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1856254#M1215904</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-11-06T09:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1856328#M1215913</link>
      <description>&lt;P&gt;This is very interesting. My first guess is that your application is using a lot of RAM during the reload and you are paging during the resident load.&amp;nbsp; Although your server has a lot of RAM, can you observe how much the load is using either by watching the task manager or checking the logs?&amp;nbsp; I'm guessing that server is also used for QVS (Qlikview users).&amp;nbsp; What is the total memory usage on the server like?&lt;/P&gt;
&lt;P&gt;Can you post a screenshot of the data model in your app?&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 19:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1856328#M1215913</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-11-07T19:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Append a rownumber to a table quickly in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1857871#M1215974</link>
      <description>&lt;P&gt;Server is dedicated to Qlikview reload tasks/QMC. There are many extracts which runs on daily basis.&lt;/P&gt;
&lt;P&gt;Usage is at bit higher side.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I have managed to use your code and it has worked for me.&lt;BR /&gt;What I have done -&lt;BR /&gt;In my extract I have loaded data from various sources in optimised format without generating RecNo() as &lt;SPAN&gt;RecId&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;column.&lt;/P&gt;
&lt;P&gt;There was a comment by&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; where he said that "&lt;EM&gt;Only if you load a single table within a script you will load THIS table. If there are more loadings the loads may effect on each other.&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;Further while refreshing dashboard which is following the above one. Performed a binary load and then have added block of code suggested by you and derived RecId column as advised by you.&lt;/P&gt;
&lt;P&gt;This block runs only once each time while reloading dashboard. Its pretty quick and gets completed in few mins not in seconds though.&lt;/P&gt;
&lt;P&gt;One more question, are there any chance to miss any record if we are using RecNo() instead of RowNo(). I observed that RowNo() is very slow..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does RecId guarantees to return sequential integers .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Code -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Binary [Report.qvw];&lt;/P&gt;
&lt;P&gt;Data2:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD *, RecNo() as Sequence Resident Data; // Data table is from binary load&lt;BR /&gt;Drop Table Data2;&lt;BR /&gt;Rename table Data2 to Data;&lt;/P&gt;
&lt;P&gt;What do you think&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 19:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Append-a-rownumber-to-a-table-quickly-in-qlikview/m-p/1857871#M1215974</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2021-11-10T19:17:14Z</dc:date>
    </item>
  </channel>
</rss>

