Skip to content

[23기_김태익] 성능최적화 미션 제출합니다.#70

Open
taeik21 wants to merge 3 commits into
CEOS-Developers:taeik21from
taeik21:taeik21
Open

[23기_김태익] 성능최적화 미션 제출합니다.#70
taeik21 wants to merge 3 commits into
CEOS-Developers:taeik21from
taeik21:taeik21

Conversation

@taeik21

@taeik21 taeik21 commented May 23, 2026

Copy link
Copy Markdown

No description provided.

@Oh-Jisong Oh-Jisong left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그동안 고생하셨습니다
감사합니다!

Comment thread README.md

---

# 성능 최적화

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README 정리가 정말 좋았습니다!
단순히 인덱스 추가에서 끝나는 게 아니라 기존 쿼리의 문제와 최적화 후 결과를 같이 보여줘서 성능 개선 의도가 명확하게 전달되는 것 같습니다.

Comment thread README.md
```java
ALTER TABLE movie ADD FULLTEXT INDEX idx_movie_title_ft (title) WITH PARSER ngram;

@Query(value = "SELECT * FROM movie WHERE MATCH(title) AGAINST(:keyword IN BOOLEAN MODE) AND deleted_at IS NULL", nativeQuery = true)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기존 Containing 기반 검색을 Full Text Search로 바꾼 점 좋습니다!
영화 제목 검색은 사용 빈도가 높은 기능이라 단순 JPA 메서드 쿼리보다 실제 DB 검색 방식까지 고려한 점이 성능 최적화 미션 취지에 잘 맞는 것 같습니다.

@Table(indexes = {
@Index(name = "idx_theater_location", columnList = "location")
})
public class Theater extends BaseSoftDeleteEntity {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

지점 검색에서 자주 사용되는 location에 인덱스를 추가한 점 좋습니다!
Theater 조회는 지역 조건으로 필터링되는 경우가 많을 것 같아서 실제 서비스 사용 흐름을 고려한 최적화로 보입니다.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants