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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -