Skip to content

[REFACT] 채팅방 목록 조회 쿼리 및 캐시 조회 배치화 #682

Description

@Dimo-2562

✨ 리팩토링 할 부분

모임/개인 채팅방 목록 조회 시 채팅방마다 반복되는 DB·Redis 호출을 배치 처리합니다.

작업 내용

  • 모임 채팅방 인원 수를 GROUP BY chatRoomId로 일괄 조회
  • 모임/개인 채팅방 마지막 메시지 캐시를 다건 조회
  • 캐시 미스 시 마지막 메시지를 DB에서 일괄 조회
  • 채팅방 수에 따라 SQL 수가 증가하지 않는지 쿼리 카운트 테스트 추가

기존 응답 형식과 정렬은 유지합니다.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🌟 REFACTNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions