<?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: Poor performance for Datamart Dimension table in Qlik Compose</title>
    <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810473#M342</link>
    <description>&lt;P&gt;Yeah I guessed that would something to look for but just tried to solve the query rather than looking the whole process here&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_savoring_food:"&gt;😋&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 19:06:27 GMT</pubDate>
    <dc:creator>aj96</dc:creator>
    <dc:date>2021-05-25T19:06:27Z</dc:date>
    <item>
      <title>Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810132#M334</link>
      <description>&lt;P&gt;I am facing performance issue for a Dimension table having multiple relation to other table. For one of my dimension it took almost 8 min to complete that is having no records that was inserted or updated in the previous DWH run. Sometimes a stat update helps other times&amp;nbsp; I tried rebuild the index of some of the tables used in that query and it ran in seconds. I also altered the sub query to use that base table only once and that also helped. Could some one help me this? Is there something that can be done in compose that would improve the performance?&lt;/P&gt;&lt;P&gt;I'm using Compose Version&amp;nbsp;2021.5.0.69 and Sql Server 2017 CU22.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 20:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810132#M334</guid>
      <dc:creator>aj96</dc:creator>
      <dc:date>2025-03-14T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810171#M336</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/126640"&gt;@aj96&lt;/a&gt;&amp;nbsp; - can you run a query plan to see what the plan is doing?&amp;nbsp; &amp;nbsp; Since its SQL Server it could be stats / index out of date like you are suggesting - or perhaps a more "covering" index for the initial criteria (get the ID's for any changed records).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would want to see the plan to determine if any changes are required&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 23:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810171#M336</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2021-05-24T23:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810435#M339</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109210"&gt;@TimGarrod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the query plan for this query.&lt;/P&gt;&lt;P&gt;i was also wondering whether instead of having multiple union all and the same E1 table wouldn't it better to have those in the same join. I changed that and it got completed in a 1 sec for 144 records other took about 12 min.&lt;/P&gt;&lt;P&gt;SELECT [ID]&lt;BR /&gt;FROM ( SELECT [E1].[ID] [ID]&lt;BR /&gt;FROM [ODS_COMPOSE_DW].[ods].[TDWH_UDT_HUB] [E1]&lt;BR /&gt;WHERE [E1].[RUNNO_UPDATE] &amp;gt; 100&lt;BR /&gt;UNION ALL&lt;BR /&gt;SELECT [E1].[ID] [ID]&lt;BR /&gt;FROM [ODS_COMPOSE_DW].[ods].[TDWH_UDT_HUB] [E1]&lt;BR /&gt;INNER JOIN [ODS_COMPOSE_DW].[ods].[TDWH_MEMBER_HUB] [E2]&lt;BR /&gt;ON [E1].[MEMBER] = [E2].[ID]&lt;BR /&gt;AND [E2].[RUNNO_UPDATE] &amp;gt; 100&lt;BR /&gt;INNER JOIN [ODS_COMPOSE_DW].[ods].[TDWH_PRACTITIONER_HUB] [E3]&lt;BR /&gt;ON [E1].[PRACTITIONER] = [E3].[ID]&lt;BR /&gt;AND [E3].[RUNNO_UPDATE] &amp;gt; 100&lt;BR /&gt;INNER JOIN [ODS_COMPOSE_DW].[ods].[TDWH_SUPPLIER_HUB] [E4]&lt;BR /&gt;ON [E1].[SUPPLIER] = [E4].[ID]&lt;BR /&gt;AND [E4].[RUNNO_UPDATE] &amp;gt; 100&lt;BR /&gt;INNER JOIN [ODS_COMPOSE_DW].[ods].[TDWH_SUPPLIER_LOCATION_HUB] [E5]&lt;BR /&gt;ON [E1].[SUPPLIER_LOCATION] = [E5].[ID]&lt;BR /&gt;AND [E5].[RUNNO_UPDATE] &amp;gt; 100&lt;BR /&gt;INNER JOIN [ODS_COMPOSE_DW].[ods].[TDWH_AUTHORIZATION_HEADER_HUB] [E6]&lt;BR /&gt;ON [E1].[AUTHORIZATION_HEADER] = [E6].[ID]&lt;BR /&gt;AND [E6].[RUNNO_UPDATE] &amp;gt; 100&lt;BR /&gt;INNER JOIN [ODS_COMPOSE_DW].[ods].[TDWH_CLAIM_HUB] [E7]&lt;BR /&gt;ON [E1].[CLAIM] = [E7].[ID]&lt;BR /&gt;AND [E7].[RUNNO_UPDATE] &amp;gt; 100&lt;BR /&gt;WHERE NOT [E1].[RUNNO_UPDATE] &amp;gt; 100&lt;BR /&gt;) [QQ]&lt;BR /&gt;GROUP BY [ID]&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 17:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810435#M339</guid>
      <dc:creator>aj96</dc:creator>
      <dc:date>2021-05-25T17:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810459#M340</link>
      <description>Problem is your query isn’t going to detect all the changes.&lt;BR /&gt;&lt;BR /&gt;When you consider all the relationships, what Compose is doing is detecting the ID’s for the GRAIN of the dimension table that need to be adjusted.&lt;BR /&gt;So if I have Product with a relationship to Supplier and a relationship to Category, Compose needs to determine&lt;BR /&gt;&lt;BR /&gt;* which product records have change&lt;BR /&gt;* which category records have changed (join to products to determine which product ID’s that impacts)&lt;BR /&gt;* where supplier records have changed (join to products to determine which product ID’s that impacts)&lt;BR /&gt;&lt;BR /&gt;That’s a simple scenario. Then consider cascading changes (Category has a relationship to CategoryType)&lt;BR /&gt;&lt;BR /&gt;* which categoryType records have changed (joined to category, joined to product to determine which product ID’s are impacted)&lt;BR /&gt;&lt;BR /&gt;So trying to have those all in a single join gets complex with OR conditions having to be accounted for – which would certainly negate indexes and cause scans.&lt;BR /&gt;&lt;BR /&gt;Will review the plan and get back to you &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 May 2021 18:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810459#M340</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2021-05-25T18:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810464#M341</link>
      <description>&lt;P&gt;Can you try to run the attached - and tell me how long it takes?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 18:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810464#M341</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2021-05-25T18:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810473#M342</link>
      <description>&lt;P&gt;Yeah I guessed that would something to look for but just tried to solve the query rather than looking the whole process here&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_savoring_food:"&gt;😋&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 19:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810473#M342</guid>
      <dc:creator>aj96</dc:creator>
      <dc:date>2021-05-25T19:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810480#M343</link>
      <description>&lt;P&gt;I ran this and this got completed in 25 sec &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I still see a high estimated count in the query plan.&amp;nbsp; So I was guessing when using the runno to get the records the estimate shouldn't be this high.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aj96_0-1621969673359.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55666iEE996543696419EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aj96_0-1621969673359.png" alt="aj96_0-1621969673359.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 19:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810480#M343</guid>
      <dc:creator>aj96</dc:creator>
      <dc:date>2021-05-25T19:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810492#M344</link>
      <description>If estimates are off - those are stats based in SQL Server. Remember a single change to a table that is say 4 relationships removed could impact a larger number of the "granular records". The issue is sometimes in SQl server having that union all / group by - followed by the join can cause index scans on the subsequent tables. The tmp table and index is likely ensuring an index seek when compiling the rest of the data together.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 May 2021 19:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810492#M344</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2021-05-25T19:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810499#M345</link>
      <description>&lt;P&gt;Yes that make sense. So index wise we should be able to do something here right. So we can make sql server use a index seek rather than scan. Also checked index fragmentation, all these were below 5%.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 19:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810499#M345</guid>
      <dc:creator>aj96</dc:creator>
      <dc:date>2021-05-25T19:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810505#M346</link>
      <description>You won't be able to force a seek off that nested UNION All. Storing the ID results in the temp table and indexing it allows the nested loop and seek on the first table / HUB that it joins to.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 May 2021 19:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810505#M346</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2021-05-25T19:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810508#M347</link>
      <description>&lt;P&gt;Okie.. So could you help us how we could implement this in our project. These query are compose generated and editing each query for every generate would be tiresome for us &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 20:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810508#M347</guid>
      <dc:creator>aj96</dc:creator>
      <dc:date>2021-05-25T20:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810509#M348</link>
      <description>Have you submitted a ticket? I recommend submitting a ticket to R&amp;amp;d - you can PM me the ticket number and I can bring it up to support / PM.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 May 2021 20:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810509#M348</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2021-05-25T20:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance for Datamart Dimension table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810511#M349</link>
      <description>&lt;P&gt;Will do that &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109210"&gt;@TimGarrod&lt;/a&gt;&amp;nbsp;for the quick help.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 20:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Poor-performance-for-Datamart-Dimension-table/m-p/1810511#M349</guid>
      <dc:creator>aj96</dc:creator>
      <dc:date>2021-05-25T20:13:04Z</dc:date>
    </item>
  </channel>
</rss>

