어노테이션&순환 참조&n+1 확인#1
Open
Hyochang098 wants to merge 1 commit intohavuruta:check-circular-referencefrom
Hidden character warning
The head ref may contain hidden characters: "check-circular-reference-\uc9c4\ud6a8\ucc3d"
Open
Conversation
순환 참조 해결방법 - `@JsonManagedReference / @JsonBackReference/ @JsonIgnore` 사용해서 순환 참조 해결 - DTO: 엔티티는 DB연동만, dto로 클라이언트와의 데이터 교환을 하게 분리하여 해결 - Hibernate 직렬화 대응: Jackson에 Hibernate5Module를 등록해서 해결 --- N+1 해결 방법 - Jpql(커스텀 SQL문)에서 Fetch.Join을 사용하여 해결 - `@EntityGraph`로 필요한 것만 Eager_Loading으로 해결 - Lazy_Loading을 유지하며 BatchSize설정으로 해결
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
순환 참조 해결방법
@JsonManagedReference / @JsonBackReference/ @JsonIgnore사용해서 순환 참조 해결N+1 해결 방법
@EntityGraph로 필요한 것만 Eager_Loading으로 해결