What casuses Spring Boot Fail-safe cleanup (collections) to occur

前端 未结 5 2307
梦谈多话
梦谈多话 2021-02-20 14:35

I have a Java Spring Boot application with the following entities related to the below exception

SProduct

@Entity
@Table(
        name =         


        
5条回答
  •  终归单人心
    2021-02-20 14:42

    Firstly, it is a Hibernate Error handled by org.hibernate.engine and has nothing to do with Spring Boot.

    It can occur if you're fetching large amounts of data, like tens of thousands of entities with your HQL queries.

    This can also be the case if you have mapped a one-to-many association which has many of child entities and due to bi-directional mapping the result-set is replicating infinitely.

    Refer to link below for high performance JPA Tips.

    https://vladmihalcea.com/14-high-performance-java-persistence-tips/

提交回复
热议问题