Skip to content

Conversation

@Hoyoung027
Copy link

저희집 고양이의 급작스러운 수술 이슈로 쿼리 최적화가 완료되지 못했는데요, 다음주 세션 전까지 최대한 마무리하겠습니다.. ㅠㅠ

@Hoyoung027 Hoyoung027 changed the base branch from master to Hoyoung027 November 15, 2025 16:53
Copy link

@danaggero danaggero left a comment

Choose a reason for hiding this comment

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

이번주도 고생 많으셨습니다!!

public void applyCoupon(...) {
couponRepository.save(...); // 여기서 예외 → 이 부분만 롤백
}
```

Choose a reason for hiding this comment

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

예시 코드가 있어서 이해하기 수월합니다!

- 인덱스 내부에서는 정의된 column 순서대로 정렬
- 여러 column을 동시에 검색하거나 조건으로 사용할 때 유용함
- 인덱스 커버링 가능 (쿼리가 사용하는 column이 모두 compostie index에 포함될 경우 테이블 데이터를 보지 않고 인덱스 차원에서 결과 반환 가능)
- 인덱스 크기가 커질 수 있고, 순서에 따라 활용도가 달라질 수 있음

Choose a reason for hiding this comment

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

잘 정리해주셔서 많이 배웠습니다!

@junilyy
Copy link

junilyy commented Nov 17, 2025

예시 코드와 함께 언제 주로 사용되는지 상세하게 적어주셔서 이해하기 쉬웠습니다.
고양이가 얼른 낫길 바라겠습니다! 이번주도 고생하셨어요

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.

3 participants