Skip to content

태그 기반 고등학생 질문글 추천 API 구현 #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

Woojun-Yoon
Copy link
Member

@Woojun-Yoon Woojun-Yoon commented Oct 3, 2024

What is this PR do?

태그 기반 고등학생 질문글 추천 로직 구현

  • 대학교 이름, 학과, 학년을 바탕으로 스코어링을 통해, 점수가 가장 높은 게시글을 대학생의 홈 뷰에서 보이게 하기위한 API 구현
  • 학교 이름:학과:학년 = 0.3:0.6:0.1 의 가중치를 가지고 있음
  • 이유는 아무래도 학과가 같으면 다른 대학교의 같은 학과 학생들도 답변할 충분한 이유가 생긴다 판단
  • 학교 이름 점수가 2번째로 높은 이유는 해당 학교에 대한 정보를 묻는 글 또는 특수 학과에 대한 질문글
  • 학년이 가장 낮은 이유는 아무래도 덜 중요하다 판단 위 가중치는 추후 적절하게 변경할 예정

성능 최적화

  • 아무래도 모든 게시글을 조회하는 쿼리로써 무거움
  • 최대한 요청을 줄이기 위한 프론트단 로컬 DB 적극 사용
  • 서버 측도 성능 최적화를 위한 쿼리를 통한 스코어링 및 페이징 처리로 메모리 성능 최적화
  • H2 환경 명명 호환성 문제로 application.yaml 수정

Tests

  • : 다양한 고등학생 질문글을 태그로 생성한 후, 추천 API 정상 작동 확인

resolved: #65

@Woojun-Yoon Woojun-Yoon added enhancement New feature or request feature API labels Oct 3, 2024
@Woojun-Yoon Woojun-Yoon requested a review from csb0710 October 3, 2024 17:39
@Woojun-Yoon Woojun-Yoon self-assigned this Oct 3, 2024
Copy link

github-actions bot commented Oct 3, 2024

Unit Test Results

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit d157835.

@Woojun-Yoon Woojun-Yoon merged commit 698d0da into develop Oct 3, 2024
2 checks passed
@Woojun-Yoon Woojun-Yoon deleted the feature/mentoring-recommendation branch October 3, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API enhancement New feature or request feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

태그 기반 고등학생 질문 추천 기능 구현
1 participant