Skip to content

Refactor : 커뮤니티 조회 API 리팩토링#82

Merged
jeong724 merged 4 commits intodevelopfrom
refactor/#80
Jan 16, 2025
Merged

Refactor : 커뮤니티 조회 API 리팩토링#82
jeong724 merged 4 commits intodevelopfrom
refactor/#80

Conversation

@jeong724
Copy link
Collaborator

@jeong724 jeong724 commented Jan 16, 2025

✒️ 관련 이슈번호

🔑 Key Changes

  1. 내용
    • Community 도메인에서 learningTypes, postTypes이 즉시로딩으로 되어있어서 지연 로딩으로 바꿈.. 컬렉션 타입이기 때문에 패치조인이 되지 않아 트랜젝션 내에서 초기화하도록 함
    • 지연로딩으로 설정한 컬렉션은 쿼리들을 한번에 가져올 수 있도록 배치 사이즈 설정 추가
      • 커뮤니티 서비스에서 중복되는 코드 클래스로 따로 뺌

📸 Screenshot

image

@jeong724 jeong724 added the 🔨Refactor 코드 리펙토링 (기능 변경 없이 코드만 수정할 때) label Jan 16, 2025
@jeong724 jeong724 self-assigned this Jan 16, 2025
@jeong724 jeong724 merged commit 1a94f85 into develop Jan 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨Refactor 코드 리펙토링 (기능 변경 없이 코드만 수정할 때)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] : 커뮤니티 조회 API 리팩토링

1 participant