Scenario 2: Upserting records in a collection

Scenario 2: Upserting records in a collection

EnrichVersion
6.4
task
Data Quality and Preparation > Third-party systems > Database components > MongoDB components
Design and Development > Third-party systems > Database components > MongoDB components
Data Governance > Third-party systems > Database components > MongoDB components
EnrichPlatform
Talend Studio

This scenario applies only to a Talend solution with Big Data.

This scenario upserts the collection blog as an existing record has its author changed and a new record is added. Before the upsert, the collection blog looks like:

1;Andy;Open Source Outlook;Open Source,Talend;Talend, the leader of the open source world...
2;Andy;Data Integration Overview;Data Integration,Talend;Talend, the leading player in the DI field...
3;Andy;ELT Overview;ELT,Talend;Talend, the big name in the ELT circle...

Such records can be inserted to the database following the instructions of Scenario 1: Creating a collection and writing data to it.