<?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 Low perfomance at Group By in Script in Archived Groups</title>
    <link>https://community.qlik.com/t5/Archived-Groups/Low-perfomance-at-Group-By-in-Script/m-p/446056#M4184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Who may be watching the level of CPU utilization during the execution of Grouping?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating a model, you must count the number of entries for each day.&lt;/P&gt;&lt;P&gt;Perform this simple but CPU usage does not exceed 10-15% if you do the Group By in the script.&lt;/P&gt;&lt;P&gt;In the case where data are loaded ungrouped and creates a graph with dimension date and the expression of the counter, the CPU 100%.&lt;/P&gt;&lt;P&gt;This situation would not cause problems if the data volume is insignificant, but in my case it is tens of gigabytes on a server with 12 physical cores and load the script takes about 30 minutes, but if you calculate in the interface table, the execution time is less than 20 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a solution to help calculate the grouping of the data in the script with maximum efficiency?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that if calculated on the SQL server, it will be faster, but my source is QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example to try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13705181354632128" jivemacro_uid="_13705181354632128"&gt;&lt;P&gt;'detailed':&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Floor(RowNo()/10000) as dimention,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RowNo() as value&lt;/P&gt;&lt;P&gt;AutoGenerate 10000000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'grouped':&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dimention,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Sum(value) as sum_value&lt;/P&gt;&lt;P&gt;Resident detailed&lt;/P&gt;&lt;P&gt;Group By dimention;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2025 14:48:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2025-07-23T14:48:52Z</dc:date>
    <item>
      <title>Low perfomance at Group By in Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Low-perfomance-at-Group-By-in-Script/m-p/446056#M4184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Who may be watching the level of CPU utilization during the execution of Grouping?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating a model, you must count the number of entries for each day.&lt;/P&gt;&lt;P&gt;Perform this simple but CPU usage does not exceed 10-15% if you do the Group By in the script.&lt;/P&gt;&lt;P&gt;In the case where data are loaded ungrouped and creates a graph with dimension date and the expression of the counter, the CPU 100%.&lt;/P&gt;&lt;P&gt;This situation would not cause problems if the data volume is insignificant, but in my case it is tens of gigabytes on a server with 12 physical cores and load the script takes about 30 minutes, but if you calculate in the interface table, the execution time is less than 20 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a solution to help calculate the grouping of the data in the script with maximum efficiency?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that if calculated on the SQL server, it will be faster, but my source is QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example to try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13705181354632128" jivemacro_uid="_13705181354632128"&gt;&lt;P&gt;'detailed':&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Floor(RowNo()/10000) as dimention,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RowNo() as value&lt;/P&gt;&lt;P&gt;AutoGenerate 10000000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'grouped':&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dimention,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Sum(value) as sum_value&lt;/P&gt;&lt;P&gt;Resident detailed&lt;/P&gt;&lt;P&gt;Group By dimention;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2025 14:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Low-perfomance-at-Group-By-in-Script/m-p/446056#M4184</guid>
      <dc:creator />
      <dc:date>2025-07-23T14:48:52Z</dc:date>
    </item>
  </channel>
</rss>

