<?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: Performance tuning in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Performance-tuning/m-p/1299805#M836164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya R,&lt;/P&gt;&lt;P&gt;The only way I know that could speed up the group by queries is by using sub select queries. Try using the subquery to group the data you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2017 12:35:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-05-19T12:35:56Z</dc:date>
    <item>
      <title>Performance tuning</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-tuning/m-p/1299804#M836163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one pls suggest on below performance, while gouping by it is taking lot of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my code.&lt;/P&gt;&lt;P&gt;I need to have sum in transformation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP_AGGR:&lt;BR /&gt;LOAD CNTX_REPORTING_DATE&amp;amp;'|'&amp;amp;SCENARIO_NAME&amp;amp;'|'&amp;amp;SCENARIO_ID&amp;amp;'|'&amp;amp;CUSTOMER_FIELD1&amp;amp;'|'&amp;amp;HBIO_1201S&amp;amp;'|'&amp;amp;HBUS_3607S&amp;amp;'|'&amp;amp;&lt;BR /&gt;HMUS_3285S&amp;amp;'|'&amp;amp;HNAH_3460S&amp;amp;'|'&amp;amp;HSBH_1100S&amp;amp;'|'&amp;amp;HSI_32900&amp;amp;'|'&amp;amp;HTCD_37130&amp;amp;'|'&amp;amp;HUSI_3401S&amp;amp;'|'&amp;amp;TRANCHE_COLLATERAL_TYPE&amp;amp;'|'&amp;amp;GENERIC_FIELD9&amp;amp;'|'&amp;amp;&lt;BR /&gt;GUARANTEE_ATTRIBUTE_6&amp;amp;'|'&amp;amp;COLLATERAL_ATTRIBUTE_5&amp;amp;'|'&amp;amp;RWALineItemKey&amp;amp;'|'&amp;amp;Memoranda_LineItemKey&amp;amp;'|'&amp;amp;BSLineItemKey&amp;amp;'|'&amp;amp;%MEMORANDA_KEY as NEWKEY,&lt;BR /&gt;column1,column2,column3, etc ...(around 30 columns)&lt;BR /&gt;resident $(vTable) ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;TEMP_AGGR_1: &lt;BR /&gt;LOAD &lt;BR /&gt;sum(column1) as column1,sum(column3) as column2,sum(column3) as column3,etc ...(around 30 columns)&lt;BR /&gt;NEWKEY&lt;BR /&gt;resident TEMP_AGGR &lt;BR /&gt;group by NEWKEY;&lt;/P&gt;&lt;P&gt;drop table TEMP_AGGR;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;$(vAggrTable): &lt;BR /&gt;LOAD &lt;BR /&gt; SubField(NEWKEY,'|',1) as&amp;nbsp; CNTX_REPORTING_DATE,&lt;BR /&gt; SubField(NEWKEY,'|',2) as&amp;nbsp; SCENARIO_NAME,&lt;BR /&gt; SubField(NEWKEY,'|',3) as&amp;nbsp; SCENARIO_ID,&lt;BR /&gt; SubField(NEWKEY,'|',4) as&amp;nbsp; CUSTOMER_FIELD1,&lt;BR /&gt; SubField(NEWKEY,'|',5) as&amp;nbsp; HBIO_1201S,&lt;BR /&gt; SubField(NEWKEY,'|',6) as&amp;nbsp; HBUS_3607S,&lt;BR /&gt; SubField(NEWKEY,'|',7) as&amp;nbsp; HMUS_3285S,&lt;BR /&gt; SubField(NEWKEY,'|',8) as&amp;nbsp; HNAH_3460S,&lt;BR /&gt; SubField(NEWKEY,'|',9) as&amp;nbsp; HSBH_1100S,&lt;BR /&gt; SubField(NEWKEY,'|',0) as&amp;nbsp; HSI_32900,&lt;BR /&gt; SubField(NEWKEY,'|',11) as&amp;nbsp; HTCD_37130,&lt;BR /&gt; SubField(NEWKEY,'|',12) as&amp;nbsp; HUSI_3401S,&lt;BR /&gt; SubField(NEWKEY,'|',13) as&amp;nbsp; TRANCHE_COLLATERAL_TYPE,&lt;BR /&gt; SubField(NEWKEY,'|',14) as&amp;nbsp; GENERIC_FIELD9,&lt;BR /&gt; SubField(NEWKEY,'|',15) as&amp;nbsp; GUARANTEE_ATTRIBUTE_6,&lt;BR /&gt; SubField(NEWKEY,'|',16) as&amp;nbsp; COLLATERAL_ATTRIBUTE_5,&lt;BR /&gt; SubField(NEWKEY,'|',17) as&amp;nbsp; RWALineItemKey,&lt;BR /&gt; SubField(NEWKEY,'|',18) as&amp;nbsp; Memoranda_LineItemKey,&lt;BR /&gt; SubField(NEWKEY,'|',19) as&amp;nbsp; BSLineItemKey,&lt;BR /&gt; SubField(NEWKEY,'|',20) as&amp;nbsp; %MEMORANDA_KEY,&lt;BR /&gt;column1,column2,column3, etc ...(around 30 columns)&lt;BR /&gt;resident TEMP_AGGR_1;&lt;BR /&gt;Concatenate&lt;BR /&gt;LOAD * &lt;BR /&gt;Resident $(vMemoTable);&lt;/P&gt;&lt;P&gt;drop table TEMP_AGGR_1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-tuning/m-p/1299804#M836163</guid>
      <dc:creator>priyarane</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-tuning/m-p/1299805#M836164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya R,&lt;/P&gt;&lt;P&gt;The only way I know that could speed up the group by queries is by using sub select queries. Try using the subquery to group the data you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 12:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-tuning/m-p/1299805#M836164</guid>
      <dc:creator />
      <dc:date>2017-05-19T12:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-tuning/m-p/1299806#M836165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not surprised that your script is quite slow - the aggregation of data within a load is one of the most resource-intensive actions which are possible and qlik couldn't perform this kind of task multi-threaded else it's single-threaded (I don't know if other tools could handle it more performant). Especially by aggregating 30 columns over a really huge key - I don't think that concatenating all the fields to this key and splitting them later again is helpful in any way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My suggestion is to check if you this aggregation table is really needed especially by this amount of grouping fields will be the reduction-rate from not aggregated to aggregated data rather slow - I would assume maybe around 50%. So I could imagine that calculations over the unaggregated data aren't essentially slower as over the aggregated data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really need aggregated data you should check if you could aggregate them with lesser grouping fields and/or split them into several horizontal and vertically parts which could be merged afterwards per joining/concatenating/mapping. If this isn't performant enough you will need incremental approaches which loads the aggregated data from a qvd and only the new/changed records will be aggregated on this way and append in the end to the qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 13:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-tuning/m-p/1299806#M836165</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-19T13:01:18Z</dc:date>
    </item>
  </channel>
</rss>

