Skip to content

Commit

Permalink
Avoid unnecessary mapping of Sort object.
Browse files Browse the repository at this point in the history
Closes: #4846
  • Loading branch information
christophstrobl committed Dec 11, 2024
1 parent 538399a commit b43c09d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2593,9 +2593,10 @@ protected <S, T> List<T> doFind(String collectionName,
QueryContext queryContext = queryOperations.createQueryContext(new BasicQuery(query, fields));
Document mappedFields = queryContext.getMappedFields(entity, EntityProjection.nonProjecting(entityClass));
Document mappedQuery = queryContext.getMappedQuery(entity);
Document mappedSort = getMappedSortObject(query, entityClass);

if (LOGGER.isDebugEnabled()) {

Document mappedSort = getMappedSortObject(query, entityClass);
LOGGER.debug(String.format("find using query: %s fields: %s sort: %s for class: %s in collection: %s",
serializeToJsonSafely(mappedQuery), mappedFields, serializeToJsonSafely(mappedSort), entityClass,
collectionName));
Expand Down

0 comments on commit b43c09d

Please sign in to comment.