[ASSIGNMENT] 7차 과제 구현#17
Open
haerxeong wants to merge 3 commits into
Open
Conversation
1 task
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.
🔥Pull requests
closed #16
👷 과제 구현
필수과제
선택과제
구현한 내용에 대해서 설명해주세요
User.email컬럼에 인덱스를 적용했습니다.email은 사용자를 식별하는 값으로 사용되기 때문에@Column(unique = true)를 함께 적용해 중복 이메일 가입을 방지하도록 했습니다.User엔티티의 필드들에@Column을 추가했습니다.구현하며 고민했던 내용을 적어주세요 (사소한 것도 좋아요)
어떤 컬럼에 인덱스를 적용할지 고민했습니다. Where절에 자주 등장하는 컬럼, JOIN 조건이 사용되는 컬럼, ORDER BY, GROUP BY에 사용되는 컬럼 등등에 인덱스를 걸면 좋으며 데이터가 적은 테이블에는 인덱스 효과가 낮다는 점을 참고하였습니다.
🚨 참고 사항