Disable row count of findAll() / collection resource in Spring Data REST -
i'd prefix fact issue due postgressql , known problem row counting.
with tens of millions of rows, call localhost:8080/myobject
takes significant amount of time execute because of call count rows.
given that, there way disable count call base collection resource in spring data rest / jpa, without writing custom repository implementations use list
/ iterable
/ slice
return types pageable methods?
try this:
<mvc:argument-resolvers> <bean class="org.springframework.data.web.pageablehandlermethodargumentresolver"> <property name="fallbackpageable"> <null /> </property> </bean> </mvc:argument-resolvers>
Comments
Post a Comment