title: Saving document the first time with MongoTemplate
body: <p>I'm facing a problem saving a document at the first time with MongoTemplate.
  I have many records come to the server concurrently , these records have the same identity , so I save first arrived record in mongo and all the other records will update the saved document.</p>
  
  <p>Example : </p>
  
  <pre><code>record1(id=x) , record2(id=x),record3(id=x),record4(id=x),record5(id=x),record6(id=x),.....
  </code></pre>
  
  <p>I need to save only <code>record1(id=x)</code> , and all the others to update the document.</p>
  
  <p>Because of the concurrency , many records saved at the first time .
  Is there a built in solution to this problem before going to other logic work around.</p>