title: How to know execution stats for mongo bulk query using spring data jpa and mongotemplate?
body: <p>I needed to know how could i know the details of the bulk execute query either through mongo shell or through spring boot code. My code  :</p>
  <pre><code>for (Map&lt;String,Object&gt; record : updateRecords) {
      Update update = new Update();
      Query query = query(where(&quot;_id&quot;).is(record.get(&quot;Id&quot;)));
      for (Map.Entry&lt;String, Object&gt; entry : record.entrySet()) {
          update.set(entry.getKey(), entry.getValue());
      }
      Pair&lt;Query,Update&gt; queryUpdatePair = Pair.of(query,update);
          updateList.add(queryUpdatePair);
      }
      ops.updateOne(updateList);
      ops.execute();
  ...
  </code></pre>