<?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:  Converting WHERE clause in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195599#M129</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to filter out data(use where clause) from output component for insert update.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am facing performance issue for inserting/update 5-10 records in talend using tmap.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In my input component, I have only few rows (around 10) and in my output table, I have around 2 million records but I need to scan only 100 records for insert/update logic out of 2 million. My job is scanning whole table which causing performance issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;details -&lt;/P&gt; 
&lt;P&gt;table A - has 10 records which I need to insert in table B&lt;/P&gt; 
&lt;P&gt;table B - has 2 million record but I need to look up only 40 records (where record_type='Full').&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Attaching screenshot-&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 07:55:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-12-04T07:55:18Z</dc:date>
    <item>
      <title>Re:  Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195599#M129</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to filter out data(use where clause) from output component for insert update.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am facing performance issue for inserting/update 5-10 records in talend using tmap.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In my input component, I have only few rows (around 10) and in my output table, I have around 2 million records but I need to scan only 100 records for insert/update logic out of 2 million. My job is scanning whole table which causing performance issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;details -&lt;/P&gt; 
&lt;P&gt;table A - has 10 records which I need to insert in table B&lt;/P&gt; 
&lt;P&gt;table B - has 2 million record but I need to look up only 40 records (where record_type='Full').&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Attaching screenshot-&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 07:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195599#M129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-04T07:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re:  Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195600#M130</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;You can query 40 records from table B, and do an inner join between table A and table B. &lt;BR /&gt;table A --main--tMap...update target table&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|lookup&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;table B&lt;BR /&gt;in the query of table B&lt;BR /&gt;"select * from tableB where record_type='Full'"&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 09:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195600#M130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-04T09:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re:  Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195601#M131</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please also verify whether you have an index for the column&amp;nbsp;&lt;SPAN&gt;record_type? It can be either Binary tree or Bitmap index based on the underlying data. You can do the join condition either using a tMap as shown in above post or you can do the join between two tables in tDBInput component itself using SQL query. This will make sure that only matched records will be coming as output.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Please also check the explain plan to verify the performance of your underlying query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195601#M131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-04T15:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re:  Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195602#M132</link>
      <description>Hi,
&lt;BR /&gt;
&lt;BR /&gt;Thanks for the reply. My main table is B itself which I need to update if same record(key) is available else I need to insert a new record. This step is taking time. to complete. Also, in output - (tdbComponent), we don't have option to write query to filter it out.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Dec 2019 06:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195602#M132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-05T06:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re:  Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195603#M133</link>
      <description>Hi nikhil, 
&lt;BR /&gt; 
&lt;BR /&gt;I can't use this column as indexing. Because this table is main table which collects data from various sources and few sources doesn't have this column/data. 
&lt;BR /&gt; 
&lt;BR /&gt;Also, I need to perform insert/update logic and internally generate(calculated fields) values for few column. 
&lt;BR /&gt; 
&lt;BR /&gt;Overall time taking is around 3-5 mins. But i think inserting/updating only 10 records at a time should not take more than few seconds. Hence I am looking for some optimization.</description>
      <pubDate>Thu, 05 Dec 2019 06:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195603#M133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-05T06:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re:  Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195604#M134</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please share screenshots of your current Talend job so that we will understand how you are joining the data sets? Please also add the component screenshots of problematic areas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 16:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Re-Converting-WHERE-clause/m-p/2195604#M134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-05T16:01:15Z</dc:date>
    </item>
  </channel>
</rss>

