Draft
Conversation
soomtong
reviewed
Aug 4, 2022
Contributor
soomtong
left a comment
There was a problem hiding this comment.
weaver 에 1:N 을 추가하는 것과 다른 DAO 에 대해 select 한 번 더 하는거랑 어떤 차이가 있을까요?
캐시에 담기는게 목적인 걸까요?
Contributor
Author
|
넵 어드민 리스팅하는 단계에서도 관계되는 데이터 모두가 필요한 케이스가 있는데 다른DAO에 직접 select해서 연결하는기능도 개발을 해야되겠지만 relation을 쓸 수 있다면 개발 초기 단계에서 개발도 빨리빨리 진행이 될 수 있을거라 생각해보았습니다 (기본적으로 어드민 CRUD 작업이 초반에 진행이 되기 때문에..) |
Contributor
|
예전에 동수님이 이 기능 넣다가 만 기억이 있는데 (오래 되서 가물가물하네요) ... |
Contributor
|
1-to-many를 하게되면 고려해야할게 많습니다.
fastdao가 완벽한 orm을 추구하는 것은 아니니... |
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.
PR 의 종류는 어떤 것인가요?
무엇을 어떻게 변경했나요?
weaver에 relation을 one-to-many로 설정할 경우 관계되는 모든 데이터를 리턴하도록 수정했습니다
코드 변경을 이해하기 위한 배경지식이 필요하다면 설명 해주세요.
fastdao를 쓰다가 relation을 쓰고싶은데 1:n이 지원이 안돼서 못썼던 케이스가 종종 있었던것이 생각나 수정해 보았습니다
Q. 첫번째 데이터만 리턴하는것이 성능상 문제로인해 의도된것인지 궁금합니다 👀
어떻게 테스트 하셨나요?
스모크 테스트
코드의 실행결과를 볼 수 있는 로그나 이미지가 있다면 첨부해주세요.