-
지난번 pr때(#13 ) 카테고리를 자기참조와 계층화를 통해 관리하기 위해 로직을 작성했었습니다 private static final CategoryDto ROOT_CATEGORY_DTO = new CategoryDto(-1L, "Root", null); 하지만 이 방법은 모든 카테고리를 전부 조회해온 후에 application단에서 전부 매핑을 해주는 방식이라 성능도 좋지 못하고 부모 계층의 부모 카테고리를 null로 비워두어야한다는 단점이 있었습니다 그래서 카테고리 entity단에도 root 카테고리를 넣는것이 어떤가에 대한 의견 여쭙고자합니다! |
Beta Was this translation helpful? Give feedback.
Answered by
kmw2378
Feb 21, 2024
Replies: 1 comment 4 replies
-
엔티티단에 root 카테고리를 넣는다는게 무슨 말씀인지 이해가 안가네요ㅜㅜㅜ |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
말씀하신대로 DB단에서 튜닝을 해도 한계가 있을 것 같아요! 캐싱을 하신다면 어떻게 하실 생각이실까요?