<?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>idea FirstValue should have a lower RAM memory consumption in Suggest an Idea</title>
    <link>https://community.qlik.com/t5/Suggest-an-Idea/FirstValue-should-have-a-lower-RAM-memory-consumption/idi-p/1871909</link>
    <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;FirstValue is a very useful aggregation&amp;nbsp; function to take the first result of your data set. However, I had today a big issue with this function.&lt;BR /&gt;&lt;BR /&gt;Context : 256 GB RAM Server with 16 CPU&lt;BR /&gt;67 millions row&lt;BR /&gt;First Value on 8 fields (going from 67 millions row to 60 millions row)&lt;BR /&gt;&lt;BR /&gt;The reload takes more than half of RAM !!&lt;BR /&gt;&lt;BR /&gt;here is my code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;NoConcatenate
FACT_Tx_Article_Histo :
LOAD
article_reference,
article_date,
text(FirstValue(ddj))         		as ddj,
num(FirstValue(pmp))							as pmp,
num(FirstValue(taux_depreciation))              as taux_depreciation,
text(FirstValue(enjeu_commercial))         		as enjeu_commercial,
//v1.3.0.0 - ajout de 5 champs
text(FirstValue(modele_code))					as modele_code,
text(FirstValue(article_ean13))					as article_ean13,			//ok
text(FirstValue(modele_description))			as modele_description, //ok
num(FirstValue(article_pcb))					as article_pcb,
text(FirstValue(article_statut))				as article_statut,
num(FirstValue(supplier_type))					 as supplier_type //plante si on le met en place sur l'ensemble de la volumétrie mais pas sur un échantillon... pourquoi?
Resident TMP_FACT_Tx_Article_Histo_Step1
group by
	article_date,
    article_reference
order by article_date,article_reference
,supplier_type
;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simonaubert_0-1639648764578.png" style="width: 804px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68706iA4FADE2465F2089B/image-dimensions/804x203?v=v2" width="804" height="203" role="button" title="simonaubert_0-1639648764578.png" alt="simonaubert_0-1639648764578.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to have a threshold effect since if I don't take supplier_type on, it works perfectly fine ( num type field with only two value 1 and 2) .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Simon&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 10:12:37 GMT</pubDate>
    <dc:creator>simonaubert</dc:creator>
    <dc:date>2021-12-16T10:12:37Z</dc:date>
    <item>
      <title>From now on, please track this idea from the Ideation por...</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/FirstValue-should-have-a-lower-RAM-memory-consumption/idc-p/2100381#M13643</link>
      <description>&lt;P&gt;From now on, please track this idea from the Ideation portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A title="Link to new idea" href="https://ideation.qlik.com/app/#/case/281760" target="_blank" rel="noopener"&gt;Link to new idea&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Meghann&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;EM&gt;NOTE: Upon clicking this link 2 tabs may open - please feel free to close the one with a login page. If you &lt;STRONG&gt;only&lt;/STRONG&gt; see 1 tab with the login page, please try clicking this link first: &lt;STRONG&gt;&lt;A title="Authenticate me!" href="#" target="_blank" rel="noopener"&gt;Authenticate me!&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;t&lt;/EM&gt;&lt;EM&gt;hen try the link above again. Ensure pop-up blocker is off.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/FirstValue-should-have-a-lower-RAM-memory-consumption/idc-p/2100381#M13643</guid>
      <dc:creator>Meghann_MacDonald</dc:creator>
      <dc:date>2023-08-02T15:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: FirstValue should have a lower RAM memory consumption - Status changed to: Closed - Archived</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/FirstValue-should-have-a-lower-RAM-memory-consumption/idc-p/2100382#M13644</link>
      <description />
      <pubDate>Wed, 02 Aug 2023 15:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/FirstValue-should-have-a-lower-RAM-memory-consumption/idc-p/2100382#M13644</guid>
      <dc:creator>Ideation</dc:creator>
      <dc:date>2023-08-02T15:31:15Z</dc:date>
    </item>
  </channel>
</rss>

