title: How to pull big data with JpaRepository
body: <p>I have one table with 3524976 records. I don’t know why but when I am executing a search that the output will be one record (AKA findBySerialNo) the search will be fast.</p>
  
  <p>Still, if the output is big, let's say  60000 ~ records (findByPaMode) then the process gets stuck.  I assume that I probably missing some configuration.</p>
  
  <pre><code> @RepositoryRestResource(collectionResourceRel = "tch-device-data", path = 
       "tch-device-data")
   public interface TchDeviceDataStatusNewRepository extends JpaRepository 
  &lt;TchDeviceDataStatusNew, String&gt; {
  
  deviceModel);
  List&lt;TchDeviceDataStatusNew&gt; findBySerialNo(@Param("serialNo") String serialNo);
  List&lt;TchDeviceDataStatusNew&gt; findByPaMode(@Param("paMode") String paMode);
  }
  
  
   spring.datasource.url=......
   spring.datasource.username=.......
   spring.datasource.password=.......
   spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
   spring.main.allow-bean-definition-overriding=true
   spring.data.rest.basePath=/api   
   spring.jpa.show-sql=true
   spring.jpa.properties.hibernate.format_sql=true
  
   spring.jpa.properties.hibernate.dialect = 
   org.hibernate.dialect.Oracle12cDialect
   spring.jpa.database-platform=org.hibernate.dialect.Oracle12cDialect
  </code></pre>
  
  <p>Any suggestions on how to handle big outputs?</p>
  
  <p>Thank you  </p>