<?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 out of object memory on using join in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2456003#M98478</link>
    <description>&lt;DIV&gt;Is there any way to get the fields 'Status,&amp;nbsp;Brand,&amp;nbsp;TOTAL_CUSTOMERS' from Table 'ABC' into table 'XYZ'&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Distinct combination of&amp;nbsp;&lt;SPAN&gt;Month &amp;amp; '|' &amp;amp; Cust_ID &amp;amp; '|' &amp;amp; Brand from table 'ABC' is &lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;140 Million&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#333300"&gt;and in table 'XYZ' is&lt;/FONT&gt;&lt;EM&gt;&lt;STRONG&gt; 60 Million.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#333300"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;left join&lt;/STRONG&gt;&lt;/FONT&gt; works on small data set. I have also tried using &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Applymap()&lt;/FONT&gt;&lt;/STRONG&gt; but in both cases ran into&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;out of object memory error&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;ABC:&lt;/DIV&gt;
&lt;DIV&gt;LOAD&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;AutoNumberHash128(Month, Cust_ID, Brand) as Key,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Month,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Status,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Brand ,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; TOTAL_CUSTOMERS&lt;/DIV&gt;
&lt;DIV&gt;;&lt;/DIV&gt;
&lt;DIV&gt;select&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;distinct Cust_ID,&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Month,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Status,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Brand ,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Count(distinct Cust_ID) TOTAL_CUSTOMERS&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;from table1&lt;/DIV&gt;
&lt;DIV&gt;Group by 1,2,3,4;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;left join (ABC)&lt;/DIV&gt;
&lt;DIV&gt;XYZ:&lt;/DIV&gt;
&lt;DIV&gt;LOAD&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; AutoNumberHash128(Month, Cust_ID, Brand)as Key,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Brand as Brand_XYZ,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Expected_Cust&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;FROM XYZ.qvd(qvd);&lt;/DIV&gt;</description>
    <pubDate>Fri, 24 May 2024 14:17:18 GMT</pubDate>
    <dc:creator>T_Qlik</dc:creator>
    <dc:date>2024-05-24T14:17:18Z</dc:date>
    <item>
      <title>out of object memory on using join</title>
      <link>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2456003#M98478</link>
      <description>&lt;DIV&gt;Is there any way to get the fields 'Status,&amp;nbsp;Brand,&amp;nbsp;TOTAL_CUSTOMERS' from Table 'ABC' into table 'XYZ'&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Distinct combination of&amp;nbsp;&lt;SPAN&gt;Month &amp;amp; '|' &amp;amp; Cust_ID &amp;amp; '|' &amp;amp; Brand from table 'ABC' is &lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;140 Million&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#333300"&gt;and in table 'XYZ' is&lt;/FONT&gt;&lt;EM&gt;&lt;STRONG&gt; 60 Million.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#333300"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;left join&lt;/STRONG&gt;&lt;/FONT&gt; works on small data set. I have also tried using &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Applymap()&lt;/FONT&gt;&lt;/STRONG&gt; but in both cases ran into&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;out of object memory error&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;ABC:&lt;/DIV&gt;
&lt;DIV&gt;LOAD&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;AutoNumberHash128(Month, Cust_ID, Brand) as Key,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Month,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Status,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Brand ,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; TOTAL_CUSTOMERS&lt;/DIV&gt;
&lt;DIV&gt;;&lt;/DIV&gt;
&lt;DIV&gt;select&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;distinct Cust_ID,&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Month,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Status,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Brand ,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Count(distinct Cust_ID) TOTAL_CUSTOMERS&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;from table1&lt;/DIV&gt;
&lt;DIV&gt;Group by 1,2,3,4;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;left join (ABC)&lt;/DIV&gt;
&lt;DIV&gt;XYZ:&lt;/DIV&gt;
&lt;DIV&gt;LOAD&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; AutoNumberHash128(Month, Cust_ID, Brand)as Key,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Brand as Brand_XYZ,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Expected_Cust&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;FROM XYZ.qvd(qvd);&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 May 2024 14:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2456003#M98478</guid>
      <dc:creator>T_Qlik</dc:creator>
      <dc:date>2024-05-24T14:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: out of object memory on using join</title>
      <link>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2456238#M98503</link>
      <description>&lt;P&gt;Given the large size of your data, using JOIN or ApplyMap() might lead to an 'Out of Object Memory' error in Qlik Sense. Instead, you can use &lt;STRONG&gt;INTERVALMATCH&lt;/STRONG&gt; which is more memory-efficient for large datasets. Here's how you can modify your script:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ABC:&lt;BR /&gt;LOAD&lt;BR /&gt;AutoNumberHash128(Month, Cust_ID, Brand) as Key,&lt;BR /&gt;Month,&lt;BR /&gt;Status,&lt;BR /&gt;Brand,&lt;BR /&gt;TOTAL_CUSTOMERS;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SQL select &lt;BR /&gt;distinct Cust_ID,&lt;BR /&gt;Month,&lt;BR /&gt;Status,&lt;BR /&gt;Brand,&lt;BR /&gt;Count(distinct Cust_ID) TOTAL_CUSTOMERS &lt;BR /&gt;from table1&lt;BR /&gt;Group by 1,2,3,4;&lt;/P&gt;
&lt;P&gt;XYZ:&lt;BR /&gt;LOAD &lt;BR /&gt;AutoNumberHash128(Month, Cust_ID, Brand)as Key,&lt;BR /&gt;Brand as Brand_XYZ,&lt;BR /&gt;Expected_Cust &lt;BR /&gt;FROM XYZ.qvd(qvd);&lt;/P&gt;
&lt;P&gt;// Use IntervalMatch to link the tables&lt;BR /&gt;LinkTable:&lt;BR /&gt;IntervalMatch(Key)&lt;BR /&gt;LOAD Key&lt;BR /&gt;RESIDENT XYZ;&lt;/P&gt;
&lt;P&gt;JOIN(LinkTable)&lt;BR /&gt;LOAD Key&lt;BR /&gt;RESIDENT ABC;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;In this script, &lt;STRONG&gt;IntervalMatch&lt;/STRONG&gt; creates a link table that connects the &lt;STRONG&gt;Key&lt;/STRONG&gt; fields from both &lt;STRONG&gt;ABC&lt;/STRONG&gt; and &lt;STRONG&gt;XYZ&lt;/STRONG&gt;. This way, you can get the fields &lt;STRONG&gt;Status&lt;/STRONG&gt;, &lt;STRONG&gt;Brand&lt;/STRONG&gt;, &lt;STRONG&gt;TOTAL_CUSTOMERS&lt;/STRONG&gt;&amp;nbsp;from table 'ABC' into table 'XYZ' without running into memory issues.&lt;/P&gt;
&lt;P&gt;Please replace the SQL statement with the appropriate data loading statement for your environment. Also, remember to replace `table1` and `XYZ.qvd` with your actual table name and QVD file path, respectively.&lt;/P&gt;
&lt;P&gt;Remember to drop the `LinkTable` after you are done with it to free up memory. You can do this by adding `DROP Table LinkTable;` at the end of your script.&lt;/P&gt;
&lt;P&gt;Please note that this solution assumes that the `Key` field uniquely identifies each record in both tables. If that's not the case, you might need to adjust the script accordingly.&lt;/P&gt;
&lt;P&gt;If you're still having trouble, I recommend reaching out to Qlik Support or the Qlik Community for further assistance.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 18:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2456238#M98503</guid>
      <dc:creator>Sayed_Mannan</dc:creator>
      <dc:date>2024-05-24T18:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: out of object memory on using join</title>
      <link>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2457823#M98595</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Interval Fields List not matching number of fields.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 11:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2457823#M98595</guid>
      <dc:creator>T_Qlik</dc:creator>
      <dc:date>2024-05-30T11:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: out of object memory on using join</title>
      <link>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2458160#M98633</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/225949"&gt;@T_Qlik&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It seems the join operation is completely utilizing your memory &amp;amp; resources. Hence, the script is failing. Trying increasing your resources of the server. Also, we have an amazing product which can help you identify such issues : "Wowizer".&amp;nbsp; You can reach out to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24991"&gt;@nirav_bhimani&lt;/a&gt; if interested further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rohan.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 09:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2458160#M98633</guid>
      <dc:creator>Rohan</dc:creator>
      <dc:date>2024-05-31T09:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: out of object memory on using join</title>
      <link>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2458175#M98634</link>
      <description>&lt;P&gt;These tasks should be done by ETL on databases. In my experience, database procedures are really faster compared to Qlik embedded ETL functionalities.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 09:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2458175#M98634</guid>
      <dc:creator>WillBit</dc:creator>
      <dc:date>2024-05-31T09:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: out of object memory on using join</title>
      <link>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2458195#M98635</link>
      <description>&lt;P&gt;Did you consider my suggestions from here:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/App-Development/optimize-way-to-Join-between-two-group-by-statements/m-p/2455186#M98398" target="_blank"&gt;Re: optimize way to Join between two group by stat... - Qlik Community - 2455080&lt;/A&gt;&amp;nbsp;by checking the size of the data-sets without this transformation because your available resources might be already entirely consumed. If so an appropriate preparing of the script (only this task) and/or of the environment (no other parallel consuming tools) would be useful as well as considerations to increase the RAM.&lt;/P&gt;
&lt;P&gt;Beside this you could avoid all this trouble by using an incremental approach and slicing the data on a month-level. This wouldn't only reduce the number of records within the n iterations else also simplifying the key because only Cust_ID and Brand would be remain for it.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 10:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/out-of-object-memory-on-using-join/m-p/2458195#M98635</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-05-31T10:13:42Z</dc:date>
    </item>
  </channel>
</rss>

