Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

인덱스 걸기 #50

Open
shaynekang opened this issue Apr 8, 2015 · 1 comment
Open

인덱스 걸기 #50

shaynekang opened this issue Apr 8, 2015 · 1 comment

Comments

@shaynekang
Copy link

#49 와 마찬가지로 습관적인 튜닝의 일종입니다. 손에 익혀두면 좋겠습니다. ㅎㅎ

  • User 모델에는 provideruid에 인덱스가 필요할 것 같고
  • Record 모델에는 user_iddeleted에 인덱스가 필요할 것 같네요.

더 필요한 것이 있다면 그 곳에도 인덱스를 넣도록 합시다. ㅎㅎ

@shaynekang
Copy link
Author

보통은 이러한 부분에 인덱스를 겁니다.

  • Primary Key
  • Foreign Key
  • Columns Used in Polymorphic Conditional Joins
  • Columns Used in Uniqueness Validations
  • Columns Used for STI
  • Columns Used by to_param
  • Other Columns Used in WHERE Clauses
  • State Columns
  • Boolean Columns
  • DateTime Columns

참고해주세요~

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

No branches or pull requests

1 participant