<?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: Link Table with no composite keys in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813943#M66520</link>
    <description>&lt;P&gt;The suggestion ist to concatenate both tables into one fact-table and adding there all missing or relevant information, for example the order-id to the records from the invoices and also an extra field Source to be able to select or reference later to a certain area of the dataset.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 15:00:55 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2021-06-09T15:00:55Z</dc:date>
    <item>
      <title>Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813135#M66372</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; seen some projects in which a link table is created without composite keys. It's not clear to me why.&lt;BR /&gt;In the&amp;nbsp; example of the script below,&amp;nbsp;each fact table is connected to the link table by InvoiceID and OrderID.&lt;/P&gt;&lt;P&gt;KeyTable:&lt;BR /&gt;LOAD InvoiceID,&lt;BR /&gt;Agent,&lt;BR /&gt;Customer,&lt;BR /&gt;Product&lt;BR /&gt;Resident Invoices;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Concatenate (KeyTable)&lt;BR /&gt;LOAD OrderID,&lt;BR /&gt;Agent,&lt;BR /&gt;Customer,&lt;BR /&gt;Product&lt;BR /&gt;Resident Orders;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I wonder what is the impact on performance, and whether I should change it and add composite keys, or whether there are situations where composite keys are not necessary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 14:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813135#M66372</guid>
      <dc:creator>DanaL</dc:creator>
      <dc:date>2021-06-09T14:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813159#M66376</link>
      <description>&lt;P&gt;Different people have different takes on this. My own take is that if you know why the synthetic key is there, there's not much reason to go out of your way to replace it with a manually-created composite key, unless your dataset is huge.&lt;/P&gt;&lt;P&gt;Have a look at this post, as well as the post linked within: &lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Synthetic-Keys/ba-p/1472634" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Synthetic-Keys/ba-p/1472634&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 18:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813159#M66376</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-06-05T18:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813160#M66377</link>
      <description>&lt;P&gt;Hi Or,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;There aren't any synthetic keys in the data model described above since the key table contains the common dimensions fields.&lt;/P&gt;&lt;P&gt;The question is whether the link table should be linked to the fact tables with composite keys instead of the current fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 18:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813160#M66377</guid>
      <dc:creator>DanaL</dc:creator>
      <dc:date>2021-06-05T18:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813175#M66378</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use &lt;STRONG&gt;Autonumber()&lt;/STRONG&gt; function to generate a numeric key in any table having more than 1 common fields. Like- &lt;STRONG&gt;Autonumber(ProductID&amp;amp;'-'&amp;amp; OrderID)&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It will generate a random numeric values. By this little change in the script we can remove synthetic and&amp;nbsp;Composite key&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VK&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 03:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813175#M66378</guid>
      <dc:creator>Vikash</dc:creator>
      <dc:date>2021-06-06T03:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813188#M66379</link>
      <description>&lt;P&gt;Thanks, Vikash.&lt;/P&gt;&lt;P&gt;But the current script doesn't have synthetic key issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 05:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813188#M66379</guid>
      <dc:creator>DanaL</dc:creator>
      <dc:date>2021-06-06T05:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813191#M66380</link>
      <description>&lt;P&gt;&amp;nbsp;Hi Danal,&lt;/P&gt;&lt;P&gt;Can you please provide the qvw file(if possible)?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 05:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813191#M66380</guid>
      <dc:creator>Vikash</dc:creator>
      <dc:date>2021-06-06T05:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813208#M66384</link>
      <description>&lt;P&gt;This is a question that is specific to your data model, not something generic, so there's no single answer. If memory serves, concatenating will result in a larger app but potentially faster performance (usually) relative to separate tables with keys, but I would guess that in either case unless the data volume is huge (hundreds of millions of rows) it won't matter much either way.&lt;/P&gt;&lt;P&gt;For app size, you can test this by running the script as-is and then running it with a synthetic key. For performance, you could try and do the same, or possibly use Document Analyzer to try and get a read on how long your display objects take using each method.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 09:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813208#M66384</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-06-06T09:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813232#M66387</link>
      <description>&lt;P&gt;Hi Or,&lt;/P&gt;&lt;P&gt;I guess my question is still not clear...&lt;/P&gt;&lt;P&gt;Probably my fault...&lt;/P&gt;&lt;P&gt;Thanks for your tips, anyway.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 17:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813232#M66387</guid>
      <dc:creator>DanaL</dc:creator>
      <dc:date>2021-06-06T17:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813233#M66388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I will try to create a sample app to clarify..&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 17:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813233#M66388</guid>
      <dc:creator>DanaL</dc:creator>
      <dc:date>2021-06-06T17:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813933#M66515</link>
      <description>&lt;P&gt;It depends on the data and the required views how a link-table might be connected to the fact-tables and this is mainly not performance-related else if the linked fields provides the proper associations or not.&lt;/P&gt;&lt;P&gt;Beside this a link-table approach is often the most unsuitable way to create a datamodel - especially in regard to the UI performance but also to script run-times, file-size, RAM consumption and the efforts to create and to maintain an application. I know it's very common here and much loved but the official recommendation from Qlik is to create a datamodel in the direction of a star-scheme and I do agree with it.&lt;/P&gt;&lt;P&gt;In your case it seems that you have already orders and invoices in one table - therefore there is no need to to extract them with the shown both loads + the apparently extra loads to fill with them the link-table.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 14:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813933#M66515</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-06-09T14:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813939#M66519</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;I just realized that I referred to one table (invoices), but there are actually 2 separate tables: Invoices and orders.&lt;/P&gt;&lt;P&gt;I'm not sure I understand what is your recommendation in such a case when both are sharing the 3 dimensions.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 14:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813939#M66519</guid>
      <dc:creator>DanaL</dc:creator>
      <dc:date>2021-06-09T14:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813943#M66520</link>
      <description>&lt;P&gt;The suggestion ist to concatenate both tables into one fact-table and adding there all missing or relevant information, for example the order-id to the records from the invoices and also an extra field Source to be able to select or reference later to a certain area of the dataset.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813943#M66520</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-06-09T15:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table with no composite keys</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813960#M66522</link>
      <description>&lt;P&gt;Thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Table-with-no-composite-keys/m-p/1813960#M66522</guid>
      <dc:creator>DanaL</dc:creator>
      <dc:date>2021-06-09T15:52:05Z</dc:date>
    </item>
  </channel>
</rss>

