I'm wondering if there is simple way (or at least plan to add the feature) how to return Slice without count query while passing specification to JpaSpecificationExecutor .findAll(Specification spec, Pageable pageable)
So I want to do something like this:
Slice<MessageViewEntity> messageViewEntities =
messageViewRepository.findAll(
messageViewRepository.withSearchSpecifications(language, categoryId, messageKey, longText),
new PageRequest(page, size)
);
Where count query won't be executed.
I've found this question which is almost 2 years old but in current release 10.1.2 I don't see method/way how to do this.
Thanks