Skip to content
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

created date 수정, 파일 확장자 추가, 불필요한 쿼리 수정 #130

Merged
merged 10 commits into from
Jun 30, 2024

Conversation

mjj111
Copy link
Member

@mjj111 mjj111 commented Jun 30, 2024

🤨 Motivation

🔑 Key Changes

  • 회원관련 조회에서 불필요한 쿼리를 없앴습니다. (게시판 조회시 쿼리 하나로 감소, 회원 관련 조회시 쿼리 하나로 감소)
  • 회원 이미지, 게시판 이미지 등록시 jpg 확장자 가진 파일 업로드를 허용하였습니다.
  • createdAt 컬럼에서 MySQL 명령어로 현재시간을 넣어주던 것을 @CreatedDate가 동작하도록 수정했습니다.,
  • 게시글 조회시 createdAt 기준이 아닌 pk인 boardId기준으로 정렬된 조회가 가능하도록 수정했습니다.
  • MemberInfo가 MapId로 Member의 id값을 할당 받았기 때문에 즉시로딩이 의도치 않게 지속되었습니다 .이를 지연로딩이 되도록 해결하였습니다.

🙏 To Reviewers

  • 이전에 3개의 쿼리가 나가던 게시판 조회를 1개로 줄였습니다..!!!
  • Member 조회에도 추가적으로 나가던 MemberInfo 쿼리가 지연로딩이 동작할 수 있게끔 수정했습니다. 🙋‍♂️

@mjj111 mjj111 self-assigned this Jun 30, 2024
@mjj111 mjj111 added fix 오류 관련 태그 refactoring 리팩토링 관련 태그 labels Jun 30, 2024
@mjj111 mjj111 changed the title Fix/#123 created date created date 수정, 파일 확장자 추가, 불필요한 쿼리 수정 Jun 30, 2024
@mjj111 mjj111 merged commit 5cd9231 into develop Jun 30, 2024
1 check passed
@mjj111 mjj111 mentioned this pull request Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 오류 관련 태그 refactoring 리팩토링 관련 태그
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant