[refactor/#123] Post와 TechBlog 엔티티간 logoUrl 반정규화 진행 #129
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.
❤️ 기능 설명
TechBlog의 logoUrl을 Post 엔티티로 반정규화
Post 조회 시 매번 TechBlog를 조인하지 않고 logoUrl을 바로 가져올 수 있도록 성능 개선을 진행했습니다.
주요 변경사항
Post 엔티티에 logoUrl 필드 추가
@Column(length = 500)추가RSS 크롤링 로직 수정
RssFeedItem에 logoUrl 필드 추가RssFeedReader에서 TechBlog의 logoUrl을 포함하여 크롤링PostBatchWriter의 JDBC Bulk Insert 쿼리에 view_count, logoUrl 컬럼 추가Elasticsearch 검색 API 수정
PostDocument에 logoUrl 필드 추가SearchServiceImpl.mapToSearchResult()에서 logoUrl 매핑 추가데이터 마이그레이션 완료
성능 개선 효과
검색 시 logoUrl 반환 확인

반정규화
정규화 (조인)
연결된 issue
close #123
✅ 체크리스트