[23기_오지송] 성능최적화 미션 제출합니다.#75
Open
Oh-Jisong wants to merge 2 commits into
Open
Conversation
taeik21
reviewed
May 23, 2026
taeik21
left a comment
There was a problem hiding this comment.
그동안 스터디하시느라 고생하셨습니다!!
실습 데이터 설계하신 점이 특히 인상적이었습니다~
| Case 1. WHERE condition index | ||
|
|
||
| -- Before | ||
| mysql> EXPLAIN ANALYZE SELECT * FROM reservations WHERE member_id = 1; |
There was a problem hiding this comment.
Explain Analyze를 통해 실제 쿼리 실행 계획까지 보여주셨네요!!
Comment on lines
+73
to
+76
| ## 2️⃣ 현재 CGV 서비스의 트랜잭션 분석 | ||
|
|
||
| 이번에는 "어디에 `@Transactional`이 붙어 있는지"만 본 게 아니라, | ||
| 그 경계가 지금 서비스 흐름이랑 잘 맞는지도 같이 봤음. |
There was a problem hiding this comment.
현 프로젝트에서 트랜잭션 사용이 어떤 부분이 적절했고 아쉬웠는지를 상세히 적어주셔서 이해하기 수월했습니다~!
Comment on lines
+524
to
+535
| | 클러스터드 인덱스 | 테이블 본문 자체가 이 인덱스 기준으로 저장됨 | PK 설계할 때 | | ||
| | 세컨더리 인덱스 | PK 외에 추가로 만드는 일반 인덱스 | 대부분의 조회 튜닝 | | ||
| | 유니크 인덱스 | 중복 금지까지 같이 보장 | email, paymentId, 좌석 중복 방지 | | ||
| | 단일 컬럼 인덱스 | 컬럼 하나 기준 인덱스 | 조건이 단순할 때 | | ||
| | 복합 인덱스 | 여러 컬럼을 묶은 인덱스 | `WHERE + ORDER BY`, 다중 조건 | | ||
| | 커버링 인덱스 | 인덱스만 읽고 쿼리를 끝낼 수 있는 상태 | 필요한 컬럼만 조회하는 목록 API | | ||
| | 접두사 인덱스 | 문자열 앞부분만 인덱싱 | 긴 문자열 컬럼 | | ||
| | 내림차순 인덱스 | `DESC` 정렬까지 고려한 인덱스 | 최신순 조회가 많을 때 | | ||
| | FULLTEXT 인덱스 | 키워드/문장 검색용 | 제목, 리뷰, 줄거리 검색 | | ||
| | SPATIAL 인덱스 | 좌표/영역 검색용 | 지도, 위치 기반 기능 | | ||
| | 함수/생성 컬럼 인덱스 | 계산된 값 기준 인덱스 | 함수 조건, JSON 값 조회 | | ||
| | Invisible Index | 옵티마이저에서만 숨긴 인덱스 | 인덱스 제거 전 검증 | |
Comment on lines
+555
to
+559
| 실습 데이터 규모는 아래처럼 잡았음. | ||
|
|
||
| | 테이블 | row 수 | | ||
| | --- | --- | | ||
| | `movies` | 200 | |
There was a problem hiding this comment.
실습 데이터 규모 설계 및 실행시간 분석까지 하셔서 쿼리 최적화의 중요성을 파악할 수 있었습니다~!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.