Provide a Slice based implementation of PagingAndSortingRepository [DATAJPA-734] #1107
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Brandon Vulaj opened DATAJPA-734 and commented
This may belong in DATAREST, but I figured I'd start here.
As has already been recognized, sometimes the extra count( * ) query can be incredibly expensive, depending on the database engine. Currently, within Spring Data REST, there is no way to re-map an entity's collection resource to utilize a method that returns a Slice instead of a Page. Of course you can write your own methods that do this, but this does not affect the collection resource for SDR.
SO Reference: http://stackoverflow.com/questions/29946477/disable-row-count-of-findall-collection-resource-in-spring-data-rest
Issue Links:
2 votes, 3 watchers
The text was updated successfully, but these errors were encountered: