<?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 in Jobs in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Performance-in-Jobs/m-p/2292682#M65734</link>
    <description>Okay.. new info:
&lt;BR /&gt;
&lt;BR /&gt;Same server - different databases (DWH-Test, / DWH-Prod) - same settings
&lt;BR /&gt;
&lt;BR /&gt;On my TestDB - The job is running with 10k+ rows / sec, the table was truncated before filling it!
&lt;BR /&gt;
&lt;BR /&gt;On my ProdDB - The job is running with 500 rows / sec, the table wasn't truncated before!
&lt;BR /&gt;
&lt;BR /&gt;Difference: I have some old records of MS SQL Server 2008 on my ProdDB - but the server is now MS SQL Server 2014
&lt;BR /&gt;
&lt;BR /&gt;COULD this be the problem / reason for being slow? Because of old Datasets with an older SQL version?&amp;nbsp;</description>
    <pubDate>Thu, 24 Nov 2016 08:01:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-24T08:01:20Z</dc:date>
    <item>
      <title>Performance in Jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Performance-in-Jobs/m-p/2292679#M65731</link>
      <description>&lt;P&gt;Hello Community,&lt;BR /&gt;&lt;BR /&gt;Im having serious issues with a Job.&lt;BR /&gt;&lt;BR /&gt;Facts:&lt;BR /&gt;&lt;BR /&gt;* Tablerows in DB: ~2 Million rows&lt;BR /&gt;* Select * from Table: approximately 15 seconds runtime in MSSQL Management Studio&lt;BR /&gt;* Job is getting 8GB of RAM&lt;BR /&gt;* Dfile.encoding=UTF-8&lt;BR /&gt;* Java Version 7, Update 79&lt;BR /&gt;* Talend Version: 5.2.2 - Build id: r99271-20130307-0242&lt;BR /&gt;* It's a job for a Dimension&lt;BR /&gt;* I'm having some Jobs, which are running with 60k+ rows/second&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Job is starting at 1500 Rows / Second and is immediately losing 50% and then steadily dropping, till it hits ~ 100 rows / second.&lt;BR /&gt;&lt;BR /&gt;I've tried so far:&lt;BR /&gt;&lt;BR /&gt;* setting an offset with a limitation of 10k / 100k rows&lt;BR /&gt;* removing nearly all the selected fields in the statement&lt;BR /&gt;* removing nearly all the fields in the tMap component&lt;BR /&gt;* setting new indexes for my DB-Table&lt;BR /&gt;* Splitting the Job into small pieces (200k rows each job)&lt;BR /&gt;&lt;BR /&gt;Any idea how I can "debug" this problem - to find and resolve the bottleneck?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'd appreciate any help - my Boss is getting really troublesome &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/379117/DimensionArtikel.png.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG29.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150319i6C748F298C947ADA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG29.png" alt="0683p000009MG29.png" /&gt;&lt;/span&gt; &lt;/A&gt;&lt;A href="https://community.talend.com/legacyfs/online/379117/D_ARTIKEL_ZA_1.1.zip.zip" target="_blank" rel="noopener"&gt;D_ARTIKEL_… .zip &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 14:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Performance-in-Jobs/m-p/2292679#M65731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T14:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Performance in Jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Performance-in-Jobs/m-p/2292680#M65732</link>
      <description>first, are you sure the bottleneck is in the SCD component? one way to confirm this is to replace it with a tJavaRow that does nothing -- if the job runs fast, then you can be sure its on the output.&amp;nbsp; 
&lt;BR /&gt;once you can confirm the SCD component is the issue, start taking a look at the queries it sends to the DB. from the way you describe the performance (starts fast, but then slows down) it feels like a database issue. you may notice that the indexes you created earlier do not get used in these queries.&amp;nbsp; 
&lt;BR /&gt;if you've got good indexes ( you can confirm by capturing some queries and running EXPLAIN ) and its still too slow, you may need to implement custom SCD logic in your jobs to provide further performance optimizations. What this means is instead of using the SCD component, you would replicate the logic using direct SQL statements that you write and are able to optimize. There are many techniques that are good in building a slowly changing dimension quickly, here is some I've used in the past to deal with dimension tables in the &amp;gt;100GB range.&amp;nbsp; 
&lt;BR /&gt;[list=*] 
&lt;BR /&gt; 
&lt;LI&gt;create a insert-only process. by joining your incoming data with your existing dimension, build a temporary dimension table then swap the "real" one with the temporary one. This can be more efficient than direct update statements if your tables are big.&amp;nbsp;&lt;/LI&gt; 
&lt;BR /&gt; 
&lt;LI&gt;separate inserts and updates into two different steps. first process all your inserts, then run a single update query to set the ACTIVE column for the appropriate records. This is beneficial because databases generally are faster when you modify as many rows as possible in a single query.&amp;nbsp;&lt;/LI&gt; 
&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Performance-in-Jobs/m-p/2292680#M65732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-22T21:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Performance in Jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Performance-in-Jobs/m-p/2292681#M65733</link>
      <description>Thank you for your response. I will try these methods in the future.
&lt;BR /&gt;
&lt;BR /&gt;Right now, I have "solved" the problem by adding more jvm arguments:
&lt;BR /&gt;
&lt;BR /&gt;Set Xms512M to 8192M (like Xmx)
&lt;BR /&gt;Set XX:+UseParallelGC
&lt;BR /&gt;
&lt;BR /&gt;Voila, the Job is running with 10k+ rows/sec.</description>
      <pubDate>Wed, 23 Nov 2016 09:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Performance-in-Jobs/m-p/2292681#M65733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-23T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Performance in Jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Performance-in-Jobs/m-p/2292682#M65734</link>
      <description>Okay.. new info:
&lt;BR /&gt;
&lt;BR /&gt;Same server - different databases (DWH-Test, / DWH-Prod) - same settings
&lt;BR /&gt;
&lt;BR /&gt;On my TestDB - The job is running with 10k+ rows / sec, the table was truncated before filling it!
&lt;BR /&gt;
&lt;BR /&gt;On my ProdDB - The job is running with 500 rows / sec, the table wasn't truncated before!
&lt;BR /&gt;
&lt;BR /&gt;Difference: I have some old records of MS SQL Server 2008 on my ProdDB - but the server is now MS SQL Server 2014
&lt;BR /&gt;
&lt;BR /&gt;COULD this be the problem / reason for being slow? Because of old Datasets with an older SQL version?&amp;nbsp;</description>
      <pubDate>Thu, 24 Nov 2016 08:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Performance-in-Jobs/m-p/2292682#M65734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-24T08:01:20Z</dc:date>
    </item>
  </channel>
</rss>

