Skip to content

[23기_오지송] 성능최적화 미션 제출합니다.#75

Open
Oh-Jisong wants to merge 2 commits into
CEOS-Developers:Oh-Jisongfrom
Oh-Jisong:Oh-Jisong
Open

[23기_오지송] 성능최적화 미션 제출합니다.#75
Oh-Jisong wants to merge 2 commits into
CEOS-Developers:Oh-Jisongfrom
Oh-Jisong:Oh-Jisong

Conversation

@Oh-Jisong

Copy link
Copy Markdown

No description provided.

@taeik21 taeik21 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.

그동안 스터디하시느라 고생하셨습니다!!
실습 데이터 설계하신 점이 특히 인상적이었습니다~

Case 1. WHERE condition index

-- Before
mysql> EXPLAIN ANALYZE SELECT * FROM reservations WHERE member_id = 1;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Explain Analyze를 통해 실제 쿼리 실행 계획까지 보여주셨네요!!

Comment thread README.md
Comment on lines +73 to +76
## 2️⃣ 현재 CGV 서비스의 트랜잭션 분석

이번에는 "어디에 `@Transactional`이 붙어 있는지"만 본 게 아니라,
그 경계가 지금 서비스 흐름이랑 잘 맞는지도 같이 봤음.

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
Comment on lines +524 to +535
| 클러스터드 인덱스 | 테이블 본문 자체가 이 인덱스 기준으로 저장됨 | PK 설계할 때 |
| 세컨더리 인덱스 | PK 외에 추가로 만드는 일반 인덱스 | 대부분의 조회 튜닝 |
| 유니크 인덱스 | 중복 금지까지 같이 보장 | email, paymentId, 좌석 중복 방지 |
| 단일 컬럼 인덱스 | 컬럼 하나 기준 인덱스 | 조건이 단순할 때 |
| 복합 인덱스 | 여러 컬럼을 묶은 인덱스 | `WHERE + ORDER BY`, 다중 조건 |
| 커버링 인덱스 | 인덱스만 읽고 쿼리를 끝낼 수 있는 상태 | 필요한 컬럼만 조회하는 목록 API |
| 접두사 인덱스 | 문자열 앞부분만 인덱싱 | 긴 문자열 컬럼 |
| 내림차순 인덱스 | `DESC` 정렬까지 고려한 인덱스 | 최신순 조회가 많을 때 |
| FULLTEXT 인덱스 | 키워드/문장 검색용 | 제목, 리뷰, 줄거리 검색 |
| SPATIAL 인덱스 | 좌표/영역 검색용 | 지도, 위치 기반 기능 |
| 함수/생성 컬럼 인덱스 | 계산된 값 기준 인덱스 | 함수 조건, JSON 값 조회 |
| Invisible Index | 옵티마이저에서만 숨긴 인덱스 | 인덱스 제거 전 검증 |

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
Comment on lines +555 to +559
실습 데이터 규모는 아래처럼 잡았음.

| 테이블 | row 수 |
| --- | --- |
| `movies` | 200 |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

실습 데이터 규모 설계 및 실행시간 분석까지 하셔서 쿼리 최적화의 중요성을 파악할 수 있었습니다~!

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