Skip to content

MongoTemplate performance issue during call to find() #4846

Closed
@clucacicerqlar

Description

@clucacicerqlar

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?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions