spring-projects / spring-data-commons

Spring Data Commons. Interfaces and code shared between the various datastore specific implementations.
https://spring.io/projects/spring-data
Apache License 2.0
770 stars 670 forks source link

Add support for find using predicate/pageable that returns a `Slice` [DATACMNS-541] #1011

Open spring-projects-issues opened 10 years ago

spring-projects-issues commented 10 years ago

Seshu Pasam opened DATACMNS-541 and commented

Am using QueryDslPredicateExecutor. What I really need is following method:

Slice\ findAll(Predicate predicate, Pageable pageable);

The reason I don't want to use findAll that returns Page\ is because it has twice the overhead (for performing the count operation). I am using spring-data mongodb 1.5.1


Affects: 1.8 GA (Dijkstra)

Issue Links:

7 votes, 5 watchers

mp911de commented 2 years ago

With #2228 we introduced a fluent API for Querydsl and Query by Example and it would be neat to have a Slice<T> slice(Pageable) method in addition to Page<T> page(Pageable).

membersound commented 2 years ago

Still no work on this? It is critical for large datasets, as the count query then makes a traditional Page approach unusable!

simasch commented 1 year ago

Will this be implemented eventually?

reactivestudio commented 7 months ago

Also need this feature. Will it be implemented?