title: Is there any limitation to update only a number of objects using the CrudRepository save() method in JPA?
body: <p>I have a 50k records in the table, I fetched all(50k) records using JPA findAll() method and using for loop update one filed of all record and then after performing an update all records using save() method by passing the object list. but I'm getting an error like</p>
  
  <pre><code>org.springframework.orm.jpa.JpaSystemException: could not prepare statement; nested exception is org.hibernate.exception.GenericJDBCException: could not prepare statement
  org.springframework.orm.jpa.JpaSystemException: could not load an entity: nested exception is org.hibernate.exception.GenericJDBCException: could not load an entity:
  org.springframework.dao.DataAccessResourceFailureException: could not extract ResultSet; nested exception is org.hibernate.exception.JDBCConnectionException: could not extract ResultSet
  </code></pre>