<?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: [resolved] Postgress Bulk insert and Update in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Postgress-Bulk-insert-and-Update/m-p/2329132#M98347</link>
    <description>Hi,
&lt;BR /&gt;You should use a tMap and check if the key are already present in the Target Database.
&lt;BR /&gt;You will have two outputs from the tMap:
&lt;BR /&gt;Output 1, will have rows to insert, linked to a bulk insert
&lt;BR /&gt;Output 2, will have rows to update, linked to an update component.
&lt;BR /&gt;regards,
&lt;BR /&gt;Benjamin</description>
    <pubDate>Mon, 28 Nov 2011 13:58:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-11-28T13:58:13Z</dc:date>
    <item>
      <title>[resolved] Postgress Bulk insert and Update</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Postgress-Bulk-insert-and-Update/m-p/2329131#M98346</link>
      <description>Hi all, 
&lt;BR /&gt;There's a requirement were, a large file has to be inserted into the database daily. This job is been scheduled. The output component is tPostgresqlBulkExec. But using this component we can either make Bulk insert or Bulk update, but not Both. Since there's large number records, I cannot use PostgresqlOutput, because using this component it takes it takes long time to execute. I need to make insert/update (to avoid duplicate rows). 
&lt;BR /&gt;Is there any way to do this? 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Swathi</description>
      <pubDate>Sat, 16 Nov 2024 12:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Postgress-Bulk-insert-and-Update/m-p/2329131#M98346</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Postgress Bulk insert and Update</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Postgress-Bulk-insert-and-Update/m-p/2329132#M98347</link>
      <description>Hi,
&lt;BR /&gt;You should use a tMap and check if the key are already present in the Target Database.
&lt;BR /&gt;You will have two outputs from the tMap:
&lt;BR /&gt;Output 1, will have rows to insert, linked to a bulk insert
&lt;BR /&gt;Output 2, will have rows to update, linked to an update component.
&lt;BR /&gt;regards,
&lt;BR /&gt;Benjamin</description>
      <pubDate>Mon, 28 Nov 2011 13:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Postgress-Bulk-insert-and-Update/m-p/2329132#M98347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-28T13:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Postgress Bulk insert and Update</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Postgress-Bulk-insert-and-Update/m-p/2329133#M98348</link>
      <description>Thanks Benjamin, can you guide me with the function that has to be used in tmap&lt;BR /&gt;regards,&lt;BR /&gt;Swathi</description>
      <pubDate>Mon, 28 Nov 2011 14:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Postgress-Bulk-insert-and-Update/m-p/2329133#M98348</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-11-28T14:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Postgress Bulk insert and Update</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Postgress-Bulk-insert-and-Update/m-p/2329134#M98349</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Thanks Benjamin, can you guide me with the function that has to be used in tmap&lt;BR /&gt;regards,&lt;BR /&gt;Swathi&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;No a existing function can be used, you need to query the existing key from target database and do a inner job on tMap, get the matched rows for updating, the unmatched rows for inserting. eg: 
&lt;BR /&gt;tFileInputDelimited--main--tMap-----main--tPostgresqlBulkExec(for inserting) 
&lt;BR /&gt; | -----main--tPostgresqlBulkExec(for updating) 
&lt;BR /&gt; lookup 
&lt;BR /&gt; | 
&lt;BR /&gt; tPostgresInput(select key_column from target_database) 
&lt;BR /&gt;How to do a inner job on tMap and get matched/unmatched rows? see 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqfDCAS" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/tJMSInput-configurations-for-IBM-MQ-messaging/td-p/110378&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 29 Nov 2011 02:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Postgress-Bulk-insert-and-Update/m-p/2329134#M98349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-29T02:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Postgress Bulk insert and Update</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Postgress-Bulk-insert-and-Update/m-p/2329135#M98350</link>
      <description>Thank you</description>
      <pubDate>Tue, 29 Nov 2011 09:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Postgress-Bulk-insert-and-Update/m-p/2329135#M98350</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-11-29T09:00:44Z</dc:date>
    </item>
  </channel>
</rss>

