Skip to content

[refactor] 선호 정보 미존재 시 전체 도서 조회 로직 개선 #60

Description

@eun-seoo

📄 설명

전체 도서를 조회한 뒤 중복 제거하는 방식 대신, DB 레벨에서 categoryId, genreId만을 대상으로 한
DISTINCT 조회 쿼리를 별도로 구성하여 필요한 데이터만 조회하도록 리팩토링합니다.

✅ 작업할 내용

  • DISTINCT 쿼리로 전체 테이블 스캔 방지함으로써 쿼리 최적화 작업을 합니다.

🙋🏻 참고 자료

No response

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions