<?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 Joining vs resident loading in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Joining-vs-resident-loading/m-p/2546368#M109932</link>
    <description>&lt;P&gt;So basically here is the question.&lt;BR /&gt;&lt;BR /&gt;I have a fact table called "Transaction", which is quite large (~100m records), in it theres a field called "ID.#KEY", which has less than a hundred unique values and is mixed in type (so numeric &amp;amp; string). When i try to recreate the ID.#KEY with a join (doesn't matter if i use FIELDVALUE in combination with FIELDVALUECOUNT, or LOAD DISTINCT):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;temp_ID:
LOAD DISTINCT
ID.#KEY
RESIDENT Transaction;

LEFT JOIN (Transaction)
LOAD *,
ID.#KEY AS ID_2.#KEY
RESIDENT temp_ID;
DROP TABLE temp_ID;&lt;/LI-CODE&gt;&lt;P&gt;The result is what I'd expect it to be, there are no duplication issues whatsoever, but the filesize increases 3 times. If I just do one more load and do the same, just in a resident load - no issues. Any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2026 13:00:05 GMT</pubDate>
    <dc:creator>Bchur</dc:creator>
    <dc:date>2026-04-08T13:00:05Z</dc:date>
    <item>
      <title>Joining vs resident loading</title>
      <link>https://community.qlik.com/t5/App-Development/Joining-vs-resident-loading/m-p/2546368#M109932</link>
      <description>&lt;P&gt;So basically here is the question.&lt;BR /&gt;&lt;BR /&gt;I have a fact table called "Transaction", which is quite large (~100m records), in it theres a field called "ID.#KEY", which has less than a hundred unique values and is mixed in type (so numeric &amp;amp; string). When i try to recreate the ID.#KEY with a join (doesn't matter if i use FIELDVALUE in combination with FIELDVALUECOUNT, or LOAD DISTINCT):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;temp_ID:
LOAD DISTINCT
ID.#KEY
RESIDENT Transaction;

LEFT JOIN (Transaction)
LOAD *,
ID.#KEY AS ID_2.#KEY
RESIDENT temp_ID;
DROP TABLE temp_ID;&lt;/LI-CODE&gt;&lt;P&gt;The result is what I'd expect it to be, there are no duplication issues whatsoever, but the filesize increases 3 times. If I just do one more load and do the same, just in a resident load - no issues. Any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 13:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Joining-vs-resident-loading/m-p/2546368#M109932</guid>
      <dc:creator>Bchur</dc:creator>
      <dc:date>2026-04-08T13:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Joining vs resident loading</title>
      <link>https://community.qlik.com/t5/App-Development/Joining-vs-resident-loading/m-p/2546453#M109935</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/176015"&gt;@Bchur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It is quite hard to me to understand what you are trying to do, and the comparison you are doing, without code examples (scenario A vs scenario B, etc).&lt;/P&gt;&lt;P&gt;From what you said, I can imagine you are comparing these two scenarios:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario A&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;temp_ID:
LOAD DISTINCT
ID.#KEY
RESIDENT Transaction;

LEFT JOIN (Transaction)
LOAD *,
ID.#KEY AS ID_2.#KEY
RESIDENT temp_ID;
DROP TABLE temp_ID;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario B&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LEFT JOIN (Transaction)
LOAD DISTINCT
ID.#KEY,
ID.#KEY AS ID_2.#KEY
RESIDENT Transaction;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that correct?&lt;/P&gt;&lt;P&gt;A few other questions?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What do you mean by "&lt;SPAN&gt;filesize increases 3 times"? Are you saving Transaction as a file?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;What are the number of records Transaction table in both cases?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Why are you doing a Join just to rename a field?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;One suggestion:&lt;BR /&gt;&lt;/STRONG&gt;I highly recommend adjusting the field types, especially for key fields. Do not link fields with mixed types.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 04:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Joining-vs-resident-loading/m-p/2546453#M109935</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2026-04-09T04:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Joining vs resident loading</title>
      <link>https://community.qlik.com/t5/App-Development/Joining-vs-resident-loading/m-p/2546461#M109937</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22035"&gt;@marksouzacosta&lt;/a&gt;&amp;nbsp;, I'll clarify - this is the thing causing issues:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bchur_0-1775712351234.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187705i07640A1C7CB8AB11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bchur_0-1775712351234.png" alt="Bchur_0-1775712351234.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The subroutine results reflect what I see in QMC, as you can see the QVF grew approx. 3 times. Rowcount for Transaction tables stayed the same. What doesn't cause issues:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bchur_1-1775712505908.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187706iA1C75FA6B8BF83E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bchur_1-1775712505908.png" alt="Bchur_1-1775712505908.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the issue must be in that specific field, its mixed type and the join. But, what I don't understand - how can QVF size grow while rows stay the same :).&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 05:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Joining-vs-resident-loading/m-p/2546461#M109937</guid>
      <dc:creator>Bchur</dc:creator>
      <dc:date>2026-04-09T05:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Joining vs resident loading</title>
      <link>https://community.qlik.com/t5/App-Development/Joining-vs-resident-loading/m-p/2546474#M109938</link>
      <description>&lt;P&gt;The main-cause is probably the behaviour of fieldvalue() to return only a single information of the field-value&amp;nbsp; and not both parts - which lead then to side-effects in regard which field-value information is stored where and in which way.&lt;/P&gt;&lt;P&gt;It's a standard in Qlik that values are stored (if possible) as dual() values with a string- and a numeric-interpretation. By accessing a field per fieldvalue() it returns only the second (usually numeric) part without the string-interpretation which usually results in ? respectively showing a place-holder instead the real value.&lt;/P&gt;&lt;P&gt;By using such values as join-keys it may impact how the meta-data of the field are stored. For example, a consistent date-field is stored with 8 byte per (numeric) value and a few extra bytes of the formatting per field. If the date-field has instead n different formatting the format-information isn't stored anymore on the&amp;nbsp;column-level else each the format-pattern is stored for each value against the values.&lt;/P&gt;&lt;P&gt;Nevertheless I wouldn't expect a round 3 times bigger file-size by just 100 unique values but in some way seems your approach trigger an unoptimized processing.&lt;/P&gt;&lt;P&gt;You may a bit playing with wrapping the fieldvalue() with a num() - rather not suitable by mixed types - and text() and/or changing the field-creation order - means fieldvalue() as ID2 and after that the duplicating as ID for the join ... whereby I would tend to change the logic for duplicating a field respectively switching to a mapping approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 08:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Joining-vs-resident-loading/m-p/2546474#M109938</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-04-09T08:03:09Z</dc:date>
    </item>
  </channel>
</rss>

