Skip to content

Conversation

@Hyochang098
Copy link

순환 참조 해결방법

  • @JsonManagedReference / @JsonBackReference/ @JsonIgnore 사용해서 순환 참조 해결
  • DTO: 엔티티는 DB연동만, dto로 클라이언트와의 데이터 교환을 하게 분리하여 해결
  • Hibernate 직렬화 대응: Jackson에 Hibernate5Module를 등록해서 해결

N+1 해결 방법

  • Jpql(커스텀 SQL문)에서 Fetch.Join을 사용하여 해결
  • @EntityGraph로 필요한 것만 Eager_Loading으로 해결
  • Lazy_Loading을 유지하며 BatchSize설정으로 해결

순환 참조 해결방법
- `@JsonManagedReference / @JsonBackReference/ @JsonIgnore` 사용해서 순환 참조 해결
- DTO: 엔티티는 DB연동만, dto로 클라이언트와의 데이터 교환을 하게 분리하여 해결
- Hibernate 직렬화 대응: Jackson에 Hibernate5Module를 등록해서 해결

---

N+1 해결 방법
- Jpql(커스텀 SQL문)에서 Fetch.Join을 사용하여 해결
- `@EntityGraph`로 필요한 것만 Eager_Loading으로 해결
- Lazy_Loading을 유지하며 BatchSize설정으로 해결
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant