Skip to content

REFACTOR : 메인 페이지를 리팩토링한다 #54

Merged
isyoudwn merged 5 commits intodevelopfrom
refactor/main-page
Feb 26, 2025
Merged

REFACTOR : 메인 페이지를 리팩토링한다 #54
isyoudwn merged 5 commits intodevelopfrom
refactor/main-page

Conversation

@isyoudwn
Copy link
Copy Markdown
Owner

@isyoudwn isyoudwn commented Feb 23, 2025

🥇 내용 소개

  • 동적 쿼리를 query dsl로 처리한다
  • main page 쎔네일 로직을 추가한다

🔍 추후에 할 것

🧷 관련 issue

closed #53

- 대부분 최신순으로 조회하는 쿼리를 자주 사용하는 만큼, id 컬럼을 역순 스캔이 일어나지 않도록 desc를 주어서 id를 내림차순으로 읽을 수 있도록한다.
- JPQL을 더 편하게 작성하고, 동적쿼리를 효과적으로 작성하기 위해 QueryDsl을 추가한다
- context가 초기화 되지 않아서, 테스트가 서로 영향을 주게 되는 것을 고친다.
- main page의 쿼리를 queryDsl로 변경한다
- 동적으로 where절을 생성하여, 인덱스를 효율적으로 사용하지 못하도록 하는, OR 절을 사용하는 것을 방지하도록한다.
@isyoudwn isyoudwn added the refactor recactoring code label Feb 23, 2025
@isyoudwn isyoudwn added this to the 메인 페이지 도메인 milestone Feb 23, 2025
@isyoudwn isyoudwn self-assigned this Feb 23, 2025
- main page에서 썸네일을 조회할 수 있도록 추가합니다
- 이미지가 존재하지 않는 경우, "none" 존재하는경우 uri를 보여주도록 합니다.
@isyoudwn isyoudwn closed this Feb 26, 2025
@isyoudwn isyoudwn reopened this Feb 26, 2025
@isyoudwn isyoudwn merged commit 6cf6f2e into develop Feb 26, 2025
2 checks passed
@isyoudwn isyoudwn deleted the refactor/main-page branch February 26, 2025 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor recactoring code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

REFACTOR : Query DSL로 동적쿼리를 수정한다

1 participant