Closed
Description
While using spring-data-mongodb version 4.2.12, Ive noticed that MongoTemplate during a call to find/doFind also performs getMappedSortObject
using the original query
object. The resulting variable mappedSort
is also not even used if isDebugEnabled
is FALSE.
In some cases, this call to getMappedSortObject ends creating lots of PropertyReferenceException which end up calling Throwable fillInStackTrace and perform native/synchronized code so lot of time spent for no reason building stack traces?