Our test tool creates n threads and iterates inside each thread. We calculate min, avg and maximum runtime. Thus, from time to time mongo executes the request extremely slowly - up to several seconds. Also, every time the first operation is the slowest, we even deliberately exclude it from the statistics and the difference between avg and max is huge. This is normal? Can I fix these slow operations? Why does mango perform some queries so slowly?
Below are the results for single operation mode and mix mode when we run tests for insert / get / remove / update at the same time. In mixing mode, thread = 1 means that we created 4 threads, one for each type of test

We used the default value of 100 connections per host
public void storeMt(MyTestObject myTestObject) {
mongoTemplate.insert(myTestObject );
}
public MyTestObject getMt(long id) {
MyTestObject result = mongoTemplate.findById(id, MyTestObject.class);
return result;
}
@Document
public class MyTestObject implements Serializable {
private static final long serialVersionUID = 1L;
@Id
private long id;
.......