<?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 How to perform data insertion in an already filled postgresql table without duplication ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-perform-data-insertion-in-an-already-filled-postgresql/m-p/2229450#M20389</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to insert rows of data in a Postgresql table via Talend, how can i make sure that if a row already exist in the database it won't get inserted ? I don't have a specific key to differ each row .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the job im working on&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:24:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T06:24:05Z</dc:date>
    <item>
      <title>How to perform data insertion in an already filled postgresql table without duplication ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-perform-data-insertion-in-an-already-filled-postgresql/m-p/2229450#M20389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to insert rows of data in a Postgresql table via Talend, how can i make sure that if a row already exist in the database it won't get inserted ? I don't have a specific key to differ each row .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the job im working on&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-perform-data-insertion-in-an-already-filled-postgresql/m-p/2229450#M20389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform data insertion in an already filled postgresql table without duplication ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-perform-data-insertion-in-an-already-filled-postgresql/m-p/2229451#M20390</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;not depending from the database and used tools (not only for PostgreSQL + Talend)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for prevent duplicates - you MUST have a unique key or combination of columns&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;in other case you will always have a risk of duplicates&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;what possible to do, always depend from environment and you real goals and needs&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 09:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-perform-data-insertion-in-an-already-filled-postgresql/m-p/2229451#M20390</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-07T09:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform data insertion in an already filled postgresql table without duplication ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-perform-data-insertion-in-an-already-filled-postgresql/m-p/2229452#M20391</link>
      <description>&lt;P&gt;hello vapukov and thank you for your answer ,&lt;/P&gt; 
&lt;P&gt;The dataset im working on are tickets extracted from JIRA. The table basically have the name of the ticket, date of creation, status of the ticket ( open, in progress, in review , closed...) . Now my new question is can i have a set of column as a key? for exemple those three columns at once as a key ( because obviously the same ticket can have different updated status in one day )&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your time&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 10:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-perform-data-insertion-in-an-already-filled-postgresql/m-p/2229452#M20391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T10:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform data insertion in an already filled postgresql table without duplication ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-perform-data-insertion-in-an-already-filled-postgresql/m-p/2229453#M20392</link>
      <description>&lt;P&gt;of course, you can use a set of columns as key&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;you do not need to define all these columns in a database as a primary key (it good but not mandatory)&lt;/P&gt; 
&lt;P&gt;but definitely, you need to create indexes for these columns (could be 1 combined)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;after, you could use "insert or update" in tPostgreSQLOutput component&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;add. if you need "insert-ignore" which is not available, you have a choice from 3:&lt;/P&gt; 
&lt;P&gt;- insert all data into temp table on target server and use tSQLRow for run INSERT SELECT WHERE NOT EXISTS&lt;/P&gt; 
&lt;P&gt;- use tSQLRow with prepared statements instead of tDBOutput - and run INSERT INTO TABLE (a,b,c) values (?,?,?) - check docs or forum about prepared statements in Talend&lt;/P&gt; 
&lt;P&gt;- if data relativly small - use tMap with catch rejected by INNER JOIN (tMap also can join by many columns)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 12:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-perform-data-insertion-in-an-already-filled-postgresql/m-p/2229453#M20392</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-07T12:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform data insertion in an already filled postgresql table without duplication ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-perform-data-insertion-in-an-already-filled-postgresql/m-p/2229454#M20393</link>
      <description>Thank you!</description>
      <pubDate>Thu, 07 Mar 2019 13:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-perform-data-insertion-in-an-already-filled-postgresql/m-p/2229454#M20393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T13:39:14Z</dc:date>
    </item>
  </channel>
</rss>

