<?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: Mapping vs loading multiple associated tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Mapping-vs-loading-multiple-associated-tables/m-p/1689297#M52608</link>
    <description>&lt;P&gt;Quite often has a dimensional-table really only "classical" dimensional data like a name to an ID and a relation of n:1 from the fact- to the dimension-table. But it's not mandatory the only way how a dimensional might be constructed - there might be also the measures or flag-fields included, the relationship might be n:n, the dimension-table might be in some kind a fact-table, too … surely there are various scenarios thinkable in which it may suitable to extend the classical and recommended logics for a datamodel.&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 06:51:05 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-03-31T06:51:05Z</dc:date>
    <item>
      <title>Mapping vs loading multiple associated tables</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-vs-loading-multiple-associated-tables/m-p/1688639#M52540</link>
      <description>&lt;P&gt;Is there a consensus regarding which situations warrant using&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Mapping.htm" target="_self"&gt;mapping&lt;/A&gt;&amp;nbsp;instead of loading multiple tables that are associated within the data model?&lt;/P&gt;&lt;P&gt;Say my app has a fact table with a PersonID column, and then I have a Person lookup table with a PersonID column (no duplicates) and several other columns.&amp;nbsp; Here are two cases:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I assume I should just load both tables into the data model if I intend to reference several columns from the Person table in the app (as opposed to using ApplyMap several times to create several new columns in the fact table).&amp;nbsp; Is that correct?&lt;/LI&gt;&lt;LI&gt;Now, what if I only intend to use one column from Person, such as FullName?&amp;nbsp; In that case, is mapping preferred over loading both tables into the data model?&amp;nbsp; Why?&amp;nbsp; Is mapping more performant?&amp;nbsp; (please assume the fact table is large and each person gets referenced by it many times).&amp;nbsp; Is it mainly personal preference?&amp;nbsp; One argument I see against using mapping in this situation is that if you decided later to bring in more columns from Person, it'd be easier to make that change if you had already been loading both tables into the model instead of using mapping.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Are there other situations where mapping is preferred over loading multiple tables?&amp;nbsp; Thoughts on best practices?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I found these interesting articles, which don't address my questions directly (association vs mapping) but are sort of related:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Don-t-join-use-Applymap-instead/ba-p/1467592" target="_self"&gt;Don't join use Applymap instead&lt;/A&gt;&amp;nbsp;(states that mapping is typically preferred over joining)&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/To-Join-or-not-to-Join/ba-p/1463102" target="_self"&gt;To Join or not to Join&lt;/A&gt;&amp;nbsp;(states that association is typically preferred over joining)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Edit2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After reading Marcus_sommer's comment advocating for star schemas, I went searching and found this article stating that snowflakes are usually also fine as long as intermediate dimension tables aren't very large, in which case they should be joined with the fact table:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Myth-about-the-Number-of-Hops/ba-p/1474613" target="_self"&gt;A Myth about the Number of Hops&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-vs-loading-multiple-associated-tables/m-p/1688639#M52540</guid>
      <dc:creator>mmarchese</dc:creator>
      <dc:date>2021-12-20T21:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping vs loading multiple associated tables</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-vs-loading-multiple-associated-tables/m-p/1688788#M52561</link>
      <description>&lt;P&gt;As the best compromise between script- and UI performance as well as the efforts to create and maintain an application is the star-scheme datamodel. This means within the datamodel is one fact-table which has various dimension-tables connected. In regard to your description is it therefore not needed to add the various personal-fields to the fact-table (regardless with which method it is done whereby a mapping-approach is usually the most suitable one).&lt;/P&gt;&lt;P&gt;Just associating fact- and dimension-tables worked usually very well. Without concrete challenges in regard to the performance or any calculations/views there is no need to change this approach. An exception to this suggestion &lt;STRONG&gt;&lt;U&gt;might&lt;/U&gt;&lt;/STRONG&gt; be if the dimension-table not only contained “classical” dimension-data like your mentioned name to an ID else also measures like the default working-hours (not each one will be a FTE) which are needed for any calculations.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 12:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-vs-loading-multiple-associated-tables/m-p/1688788#M52561</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-03-29T12:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping vs loading multiple associated tables</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-vs-loading-multiple-associated-tables/m-p/1689068#M52582</link>
      <description>&lt;P&gt;Marcus_sommer:&lt;/P&gt;&lt;P&gt;I understand the first two-thirds of your answer: it's unnecessary to move data from dimension tables into the fact table for the purpose of collapsing a star schema down to a single table.&lt;/P&gt;&lt;P&gt;Could you elaborate on the second part, which starts with "&lt;SPAN&gt;An exception to this suggestion&amp;nbsp;&lt;/SPAN&gt;might&lt;SPAN&gt;&amp;nbsp;be"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 15:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-vs-loading-multiple-associated-tables/m-p/1689068#M52582</guid>
      <dc:creator>mmarchese</dc:creator>
      <dc:date>2020-03-30T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping vs loading multiple associated tables</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-vs-loading-multiple-associated-tables/m-p/1689297#M52608</link>
      <description>&lt;P&gt;Quite often has a dimensional-table really only "classical" dimensional data like a name to an ID and a relation of n:1 from the fact- to the dimension-table. But it's not mandatory the only way how a dimensional might be constructed - there might be also the measures or flag-fields included, the relationship might be n:n, the dimension-table might be in some kind a fact-table, too … surely there are various scenarios thinkable in which it may suitable to extend the classical and recommended logics for a datamodel.&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 06:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-vs-loading-multiple-associated-tables/m-p/1689297#M52608</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-03-31T06:51:05Z</dc:date>
    </item>
  </channel>
</rss>

