<?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 AutoNumber slow down performance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AutoNumber-slow-down-performance/m-p/1933552#M1219061</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am trying to implement the below SQL script in QlikView to get the latest sequence number and facing performance issue while implementing "AutoNumber"&amp;nbsp; as an equivalent for rank(). Table contains around 1 Million record.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;SQL Script:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;select id, response_id, seq_num, create_dt, sent_date,&lt;BR /&gt;rank() over(partition by id order by sent_date,response_id) as seq_num&lt;BR /&gt;from table_name where seq_num=1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;QlikView Script:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;id, response_id, seq_num, create_dt, sent_date,&lt;BR /&gt;&lt;STRONG&gt;AutoNumber&lt;/STRONG&gt; (RowNo(),id ) as new_seq&lt;BR /&gt;from &lt;BR /&gt;table_name.qvd(qvd)&lt;BR /&gt;where seq_num=1;&lt;/P&gt;
&lt;P&gt;Could you please advise on how to overcome the performance issue?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 11:51:14 GMT</pubDate>
    <dc:creator>vijaymadhavan28</dc:creator>
    <dc:date>2022-05-20T11:51:14Z</dc:date>
    <item>
      <title>AutoNumber slow down performance</title>
      <link>https://community.qlik.com/t5/QlikView/AutoNumber-slow-down-performance/m-p/1933552#M1219061</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am trying to implement the below SQL script in QlikView to get the latest sequence number and facing performance issue while implementing "AutoNumber"&amp;nbsp; as an equivalent for rank(). Table contains around 1 Million record.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;SQL Script:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;select id, response_id, seq_num, create_dt, sent_date,&lt;BR /&gt;rank() over(partition by id order by sent_date,response_id) as seq_num&lt;BR /&gt;from table_name where seq_num=1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;QlikView Script:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;id, response_id, seq_num, create_dt, sent_date,&lt;BR /&gt;&lt;STRONG&gt;AutoNumber&lt;/STRONG&gt; (RowNo(),id ) as new_seq&lt;BR /&gt;from &lt;BR /&gt;table_name.qvd(qvd)&lt;BR /&gt;where seq_num=1;&lt;/P&gt;
&lt;P&gt;Could you please advise on how to overcome the performance issue?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 11:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AutoNumber-slow-down-performance/m-p/1933552#M1219061</guid>
      <dc:creator>vijaymadhavan28</dc:creator>
      <dc:date>2022-05-20T11:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: AutoNumber slow down performance</title>
      <link>https://community.qlik.com/t5/QlikView/AutoNumber-slow-down-performance/m-p/1933789#M1219081</link>
      <description>&lt;P&gt;see Rob's solution in this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/App-Development/AutoNumber-RowNo-MyField-takes-too-long/m-p/1815069#M66667" target="_blank"&gt;https://community.qlik.com/t5/App-Development/AutoNumber-RowNo-MyField-takes-too-long/m-p/1815069#M66667&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 20:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AutoNumber-slow-down-performance/m-p/1933789#M1219081</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-05-20T20:16:55Z</dc:date>
    </item>
  </channel>
</rss>

