Skip to content

Conversation

@lilloo04
Copy link
Member

📌 연관 이슈

🌱 PR 요약

  • 나의 여행지 페이지 검색 기능 추가

🛠 작업 내용

  • 검색 기능

    • keyword 파라미터 추가
    • 장소명(placeName)으로 대소문자 구분 없이 부분 일치 검색
    • 검색어가 없으면 전체 결과 반환
  • 동작 방식

    1. DB에서 사용자의 저장 목록을 페이징으로 조회
    2. 메모리에서 keyword로 필터링 (있는 경우)
    3. 필터링된 결과를 DTO로 변환하여 반환

📸 상세 이미지

image

🚀 추후 개선 계획

현재 구현: Stream 필터링

  • 구현이 간단하고 빠름
  • 사용자당 저장 목록이 많지 않으면 성능 문제 없음

개선 계획: Repository Query 메서드

  • DB 레벨에서 필터링 처리 → 대용량 데이터에서도 효율적
  • 검색 조건 반영된 정확한 페이징 가능
  • 현재는 검색 전에 페이징이 적용되므로, 검색 후 반환 개수가 페이지 크기보다 적을 수 있음

@lilloo04 lilloo04 self-assigned this Oct 14, 2025
@lilloo04 lilloo04 linked an issue Oct 14, 2025 that may be closed by this pull request
@lilloo04 lilloo04 merged commit 6883be1 into dev Oct 14, 2025
1 check passed
@lilloo04 lilloo04 deleted the feat/#104 branch December 10, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 내 저장 목록 검색 기능 추가

2 participants