<?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: Optimize Group By in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1708299#M635960</link>
    <description>&lt;P&gt;I'm using Qlik sense 13.42.1.&lt;/P&gt;&lt;P&gt;I think Qlik has now optimized this. In case we prefix the 'group by' with 'order by' operation, the data model takes a few seconds more to load.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2020 16:54:19 GMT</pubDate>
    <dc:creator>pratyushraizada</dc:creator>
    <dc:date>2020-06-04T16:54:19Z</dc:date>
    <item>
      <title>Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044336#M635944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;For below I am using QV version - 11.2 SR4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;I have always had trouble with aggregating my data as "Group by" statements in scripts have always taken too long for my comfort.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;For example, to group by&amp;nbsp; 23 million records (2 columns - ID and Sales) it takes me 10 mins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Table_Group:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Load ID,Sum(Sales)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Resident Table&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Group By ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Instead of this, If I Order by my data by ID and then run the same Group by clause, I get results backs in less that 2 mins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Table_Sort:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Load ID,Sales&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Resident Table&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Order by ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Table _Group:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;NoConcatenate Load ID,Sum(Sales)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Resident Table_Sort&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Group By Table_Sort;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;I would have believed QV to internally perform this step, but explicitly implementing this has improved my query times by 500%.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;I have tables with 40 columns (36 of which to be grouped by and 4 to be summed) and the query time has gone from 18 to 6 mins.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;I have just ensured that my Order By column list is the same as Group By Column List.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;So, If Order by is "Order By Column1,Column2,Column3" then Group by is "Group By Column1,Column2,Column3"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;I would love to hear back if others in the community also have faced similar challenges and whether this or any other method has helped them improve Group by Performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 05:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044336#M635944</guid>
      <dc:creator>rupindo_barcap</dc:creator>
      <dc:date>2016-04-29T05:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044337#M635945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are running into the same problem with our group bys. We are attempting to get the max date at each account we have for a massive fact table. We added a load resident and an order by before the group by, but it is hard to tell if the order by is improving our run time.&lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌‌ Any insight or better way to load and group data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044337#M635945</guid>
      <dc:creator />
      <dc:date>2016-07-21T14:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044338#M635946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rupinder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do your timings include the time to perform the sort, or just the group by?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 11:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044338#M635946</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2016-09-19T11:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044339#M635947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both Sort and Group By&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 14:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044339#M635947</guid>
      <dc:creator>rupindo_barcap</dc:creator>
      <dc:date>2016-12-06T14:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044340#M635948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This improved my reload time by about 55% in one instance with 25 columns and one group by/order by field. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 18:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044340#M635948</guid>
      <dc:creator>liam_hanninen</dc:creator>
      <dc:date>2017-10-10T18:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044341#M635949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awsome strategy Rupinder, just had the same problem and this solution gave a huge performance improvement.&lt;/P&gt;&lt;P&gt;Glad some tried it and helpfully posted it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 18:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044341#M635949</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-12-28T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044342#M635950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This did work... I didn't think it would, but it did... thanks for showing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 14:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044342#M635950</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-29T14:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044343#M635951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does grouping by the table name do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 16:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044343#M635951</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2018-02-05T16:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044344#M635952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 13:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044344#M635952</guid>
      <dc:creator>jonopitchford</dc:creator>
      <dc:date>2018-04-24T13:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044345#M635953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rupinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 14:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1044345#M635953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-14T14:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550268#M635954</link>
      <description>Excellent Will give a try over this.</description>
      <pubDate>Thu, 28 Feb 2019 08:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550268#M635954</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2019-02-28T08:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550582#M635955</link>
      <description>&lt;P&gt;Folks i am trying to achieve this with my group by, but i am getting this error. I don't understand, if its working there. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25242"&gt;@rupindo_barcap&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41219"&gt;@jonopitchford&lt;/a&gt;&amp;nbsp; Pl help me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7005iD038AA598C5FD3A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 15:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550582#M635955</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2019-02-28T15:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550595#M635956</link>
      <description>Try group by ID&lt;BR /&gt;it looks like they have accidentally grouped by the table name and not the field name</description>
      <pubDate>Thu, 28 Feb 2019 15:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550595#M635956</guid>
      <dc:creator>jonopitchford</dc:creator>
      <dc:date>2019-02-28T15:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550596#M635957</link>
      <description>&lt;P&gt;I think you are grouping by Table_Sort whereas you might want to Group By ID &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 15:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550596#M635957</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-28T15:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550648#M635958</link>
      <description>&lt;P&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;But Post above directed me such way, bit confused even when i am trying. Anyway i will check performance this way.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 17:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550648#M635958</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2019-02-28T17:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550695#M635959</link>
      <description>&lt;P&gt;Many Thanks! It's actually working.&lt;BR /&gt;&lt;BR /&gt;My reload time was decreased up-to some extent, anyway i will test it on huge data sets as well. As per my understanding in this procedure the order by is doing the required alignment of data for group by, which actually helps Group by to work on spontaneously with every unique data field/no. Beside checking for field/no to do grouping on-every individual occurrence.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;HirisH&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 18:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1550695#M635959</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2019-02-28T18:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1708299#M635960</link>
      <description>&lt;P&gt;I'm using Qlik sense 13.42.1.&lt;/P&gt;&lt;P&gt;I think Qlik has now optimized this. In case we prefix the 'group by' with 'order by' operation, the data model takes a few seconds more to load.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 16:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1708299#M635960</guid>
      <dc:creator>pratyushraizada</dc:creator>
      <dc:date>2020-06-04T16:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1708309#M635961</link>
      <description>&lt;P&gt;Thanks for sharing this.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 17:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1708309#M635961</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-06-04T17:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1765566#M635962</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested this technique on a 173 million records data, Without Orderby Sort, it took 10 min for one aggregation in groupby.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With using order by before group by it actually took 4min to load the 173 million data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp; There is no changes on overall app run time, it only optimized group by performance.&amp;nbsp; Because whatever the time we save for groupby, orderby will eat that time. So overall app run time has no improvement.&lt;/P&gt;&lt;P&gt;Still, very good and useful technique. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 04:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Group-By/m-p/1765566#M635962</guid>
      <dc:creator>basav</dc:creator>
      <dc:date>2020-12-02T04:51:52Z</dc:date>
    </item>
  </channel>
</rss>

