<?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: Compare Two Datasets (Txt File and MongoDB Documents) for Changes, Upload Changes. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Compare-Two-Datasets-Txt-File-and-MongoDB-Documents-for-Changes/m-p/2237153#M25674</link>
    <description>&lt;P&gt;Using tMap will catch new and deleted records, but it won't catch whether an existing record has changed. I haven't used MongoDB, but typically databases have a way to compare two records and report any differences. If you have to do it yourself, the standard solution is to compute a hash of both records and compare those; I don't know if Talend has a component to do this (it won't be tHashInput, which has a different function), but you could certainly do it with tJava.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Nov 2018 13:13:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-30T13:13:22Z</dc:date>
    <item>
      <title>Compare Two Datasets (Txt File and MongoDB Documents) for Changes, Upload Changes.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-Two-Datasets-Txt-File-and-MongoDB-Documents-for-Changes/m-p/2237151#M25672</link>
      <description>&lt;P&gt;I have a situation in which I receive a data file each month from client. Usually the file is a txt file or csv which is then processed by my Talend job and output to 3 MongoDB collections.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For context, let's say I receive a file on the 1st of the month with 2000 records and then on the 15th I receive another file but this one not only has 3000 records but some of the previous records have been altered or removed from the file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would like to be able to compare the current datasets (3 mongodb collections) to the new dataset (txt file) and update the Mongo collections with any value/status changes accordingly.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any insight on how to do this would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 20:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-Two-Datasets-Txt-File-and-MongoDB-Documents-for-Changes/m-p/2237151#M25672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-09T20:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Two Datasets (Txt File and MongoDB Documents) for Changes, Upload Changes.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-Two-Datasets-Txt-File-and-MongoDB-Documents-for-Changes/m-p/2237152#M25673</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;If you want to capture the changed data and only load these changed data into target table to achieve table sync, you can compare tables by using tMap.&lt;BR /&gt; The work flow should be: new dataset--&amp;gt;tMap(make inner join on your input and set the "Catch lookup inner join reject" as true)--&amp;gt;Mongo collections output&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; current datasets --&amp;gt;&lt;BR /&gt; The output will be the changed data.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-Two-Datasets-Txt-File-and-MongoDB-Documents-for-Changes/m-p/2237152#M25673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T09:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Two Datasets (Txt File and MongoDB Documents) for Changes, Upload Changes.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-Two-Datasets-Txt-File-and-MongoDB-Documents-for-Changes/m-p/2237153#M25674</link>
      <description>&lt;P&gt;Using tMap will catch new and deleted records, but it won't catch whether an existing record has changed. I haven't used MongoDB, but typically databases have a way to compare two records and report any differences. If you have to do it yourself, the standard solution is to compute a hash of both records and compare those; I don't know if Talend has a component to do this (it won't be tHashInput, which has a different function), but you could certainly do it with tJava.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 13:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-Two-Datasets-Txt-File-and-MongoDB-Documents-for-Changes/m-p/2237153#M25674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T13:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Two Datasets (Txt File and MongoDB Documents) for Changes, Upload Changes.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-Two-Datasets-Txt-File-and-MongoDB-Documents-for-Changes/m-p/2237154#M25675</link>
      <description>There is a post just below yours that addresses this topic (turns out Talend does have a tHash component for this purpose): 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCl9LCAS#M88433" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Need-to-compare-file-data-with-db/m-p/143305#M88433&lt;/A&gt;</description>
      <pubDate>Fri, 30 Nov 2018 13:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-Two-Datasets-Txt-File-and-MongoDB-Documents-for-Changes/m-p/2237154#M25675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T13:15:31Z</dc:date>
    </item>
  </channel>
</rss>

