I tried using ‘Upsert’ in java code and was not successful
Hi Karthik,
Could you elaborate on what do you mean by ‘not successful’ ?
Could you provide:
Please see Tutorials: Bulk Writes for an example how to perform a bulk operations using the MongoDB Java Driver. You can specify UpdateOptions to specify that an operation is an upsert. See also com.mongodb.client.model.UpdateOptions
Regards,
Wan.