-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoTemplate performance issue during call to find() #4846
Comments
Thank you @clucacicerqlar. The |
hi @christophstrobl thank you for the reply, indeed the issue is there even in the latest versions, see below. RE sample, you can see above, its problem is pretty easy to spot. the variable |
thank you @clucacicerqlar for bringing this to our attention! |
Getting rid of the For now, we'll make sure the additional sort mapping happens only if debug logging is turned on. |
Make sure type used in protected method is visible in defined scope. See: #4846
While using spring-data-mongodb version 4.2.12, Ive noticed that MongoTemplate during a call to find/doFind also performs
getMappedSortObject
using the originalquery
object. The resulting variablemappedSort
is also not even used ifisDebugEnabled
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?
The text was updated successfully, but these errors were encountered: