<?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: Performance Issue I can't explain in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402951#M1160413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The synthetic keys. These are created when you have more than one key between two tables and are usually a sign of an incorrect data model. Probably you should have just one key between each master table and the fact table. So try to remove keys (by renaming the fields) or try to combine two keys into one (by concatenating them: A &amp;amp; '|' &amp;amp; B as Key).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 08:09:54 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-12-04T08:09:54Z</dc:date>
    <item>
      <title>Synthetic Field Performance Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402950#M1160411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to create a QV model from an ERP-grade application. For this, I have "delegated" joins to QV, thinking it was the best approach. I am running this model on a laptop (with 4GB dedicated memoy to the Windows instance I am working from). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I am attempting to create a sort of a star-schema. I am simplifying the issue, this is what my script looks like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13546881234705957" jivemacro_uid="_13546881234705957"&gt;&lt;P&gt;qualify * &lt;/P&gt;&lt;P&gt;unqualify A, B, C, D &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Transactional data&lt;/P&gt;&lt;P&gt;[Dataset1]: &lt;/P&gt;&lt;P&gt;SQL SELECT A, B, C, D, &amp;lt;...&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qualify * &lt;/P&gt;&lt;P&gt;unqualify A, B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// 'dimension'&lt;/P&gt;&lt;P&gt;[MasterData1] &lt;/P&gt;&lt;P&gt;SQL SELECT A, B, &amp;lt;...&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qualify * &lt;/P&gt;&lt;P&gt;unqualify A, C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// 'dimension'&lt;/P&gt;&lt;P&gt;[MasterData2] &lt;/P&gt;&lt;P&gt;SQL SELECT A, C, &amp;lt;...&amp;gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, this is the data yield: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DataSet1: 100k records&lt;/LI&gt;&lt;LI&gt;MasterData1: &amp;lt;50 records&lt;/LI&gt;&lt;LI&gt;MasterData2: &amp;lt;5k records&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am satisfied with the result, it's extracting and processing in less than 5 seconds with a very low processor/memory footprint. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13546881234678641" jivemacro_uid="_13546881234678641"&gt;&lt;P class="p1"&gt;Connecting to XXX&lt;BR /&gt; Connected&lt;BR /&gt; DataSet1 &amp;lt;&amp;lt; AAA 112,026 lines fetched&lt;BR /&gt; &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;MasterData&lt;/SPAN&gt;1 &amp;lt;&amp;lt; BBB 29 lines fetched&lt;BR /&gt; &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;MasterData2&lt;/SPAN&gt; &amp;lt;&amp;lt; CCC 4,096 lines fetched&lt;BR /&gt; $Syn 1 = A+B&lt;BR /&gt; $Syn 2 = A+C&lt;BR /&gt; $Syn 3 = $Syn 1+$Syn 2 &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next I am adding one more MasterData to the script: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13546881234665529" jivemacro_uid="_13546881234665529"&gt;&lt;P&gt;// 'dimension'&lt;/P&gt;&lt;P&gt;[MasterData3] &lt;/P&gt;&lt;P&gt;SQL SELECT A, D, &amp;lt;...&amp;gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with a MasterData yielding 1 record or 1M records, I get to the same result: I am maxing out ma machine's memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13546881234649788" jivemacro_uid="_13546881234649788"&gt;&lt;P class="p1"&gt;Connecting to XXX&lt;BR /&gt; Connected&lt;BR /&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;DataSet1&lt;/SPAN&gt; &amp;lt;&amp;lt; AAA 112,026 lines fetched&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;MasterData&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;1&lt;/SPAN&gt; &amp;lt;&amp;lt; BBB 29 lines fetched&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;MasterData2&lt;/SPAN&gt; &amp;lt;&amp;lt; CCC 4,096 lines fetched&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;MasterData3&lt;/SPAN&gt; &amp;lt;&amp;lt; DDD 1 lines fetched&lt;BR /&gt; $Syn 1 = A+B&lt;BR /&gt; $Syn 2 = A+C&lt;BR /&gt; $Syn 3 = A+D &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could explain the sudden explosion in memory usage?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:changed the title for more visibility&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 08:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402950#M1160411</guid>
      <dc:creator />
      <dc:date>2012-12-04T08:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue I can't explain</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402951#M1160413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The synthetic keys. These are created when you have more than one key between two tables and are usually a sign of an incorrect data model. Probably you should have just one key between each master table and the fact table. So try to remove keys (by renaming the fields) or try to combine two keys into one (by concatenating them: A &amp;amp; '|' &amp;amp; B as Key).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 08:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402951#M1160413</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-12-04T08:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue I can't explain</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402952#M1160414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric for taking the time to answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read everything and its contrary about synthetic vs. composite keys. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Composite keys are fine with me, it's just that it's making the data model harder to read. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will give it a try though a report back. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;These are created when you have more than one key between two tables and are usually a sign of an incorrect data model&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You've ever worked with ERP systems? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 08:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402952#M1160414</guid>
      <dc:creator />
      <dc:date>2012-12-04T08:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue I can't explain</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402953#M1160416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interestingly, turning to a composite key model solved the performance issues. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have done: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13546100898404887" jivemacro_uid="_13546100898404887"&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;qualify * &lt;BR /&gt;unqualify A&amp;amp;B, A&amp;amp;C, A&amp;amp;D &lt;BR /&gt;&lt;BR /&gt;// Transactional data&lt;BR /&gt;[Dataset1]: &lt;BR /&gt;SQL SELECT A&amp;amp;B, A&amp;amp;C, A&amp;amp;D, &amp;lt;...&amp;gt;&lt;BR /&gt;&lt;BR /&gt;qualify * &lt;BR /&gt;unqualify A&amp;amp;B&lt;BR /&gt;&lt;BR /&gt;// 'dimension'&lt;BR /&gt;[MasterData1] &lt;BR /&gt;SQL SELECT A&amp;amp;B, &amp;lt;...&amp;gt;&lt;BR /&gt;&lt;BR /&gt;qualify * &lt;BR /&gt;unqualify A&amp;amp;C&lt;BR /&gt;&lt;BR /&gt;// 'dimension'&lt;BR /&gt;[MasterData2] &lt;BR /&gt;SQL SELECT A&amp;amp;C, &amp;lt;...&amp;gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; background-color: #ffffff;"&gt;qualify * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; background-color: #ffffff;"&gt;unqualify A&amp;amp;D&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;// 'dimension'&lt;BR /&gt;[MasterData3] &lt;BR /&gt;SQL SELECT A&amp;amp;D, &amp;lt;...&amp;gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 08:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402953#M1160416</guid>
      <dc:creator />
      <dc:date>2012-12-04T08:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue I can't explain</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402954#M1160418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now, how is that possible to delegate the composite key creation to QV instead of the ODBC driver? This is a concern as the QV document may connect to ODBC to various RDBMS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not all support convert(varchar, A) + '|' + B as CompositeKey. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 08:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402954#M1160418</guid>
      <dc:creator />
      <dc:date>2012-12-04T08:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue I can't explain</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402955#M1160419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, yes, I have worked with &lt;EM&gt;many &lt;/EM&gt;ERP systems...&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My point is that you should not let the ERP system dictate which fields you should use in QlikView. &lt;EM style="text-decoration: underline;"&gt;&lt;STRONG&gt;You &lt;/STRONG&gt;&lt;/EM&gt;are in charge and decides what the fields should look like. If the ERP system has two fields that are used as keys in many tables, then you have to create your own QlikView key, by concatenating the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tip1: use &amp;lt;ctrl&amp;gt;-T to see what you have done.&lt;/P&gt;&lt;P&gt;Tip2: use preceding Load to create the keys: e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x &amp;amp; '|' &amp;amp; y as Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result from the SELECT will then be piped into the Load. The SELECT is evaluated by the ODBC and the Load is evaluated by QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 09:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402955#M1160419</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-12-04T09:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue I can't explain</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402956#M1160420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guill , &lt;/P&gt;&lt;P&gt;Composite keys are good when the data mode is simple..&lt;/P&gt;&lt;P&gt;As the structure will gwt complex they will really create problem.&lt;/P&gt;&lt;P&gt;Even sometimes it make reload to fail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 10:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402956#M1160420</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2012-12-04T10:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue I can't explain</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402957#M1160422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there some theory to support this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 23:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402957#M1160422</guid>
      <dc:creator />
      <dc:date>2012-12-04T23:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue I can't explain</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402958#M1160423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go to below thread-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/thread/66977" title="http://community.qlik.com/thread/66977"&gt;http://community.qlik.com/thread/66977&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://www.quickintelligence.co.uk/perfect-your-qlikview-data-model/" title="http://www.quickintelligence.co.uk/perfect-your-qlikview-data-model/"&gt;http://www.quickintelligence.co.uk/perfect-your-qlikview-data-model/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://michaelellerbeck.com/2008/08/22/qlikview-synthetic-keys/" title="http://michaelellerbeck.com/2008/08/22/qlikview-synthetic-keys/"&gt;http://michaelellerbeck.com/2008/08/22/qlikview-synthetic-keys/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to all you will learn a lot!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 07:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Field-Performance-Issue/m-p/402958#M1160423</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2012-12-05T07:04:41Z</dc:date>
    </item>
  </channel>
</rss>

