Last active
March 21, 2019 13:12
-
-
Save qkreltms/de01e98cf426d4ca56b764b39f3ff21d to your computer and use it in GitHub Desktop.
해쉬태그를 위한 DB 설계
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
| http://howto.philippkeller.com/2005/04/24/Tags-Database-schemas/ | |
| 1. varchar하나로 모든 태그 저장 | |
| 장점: 심플, 속도가 좀 더 빠름 | |
| 단점: 정규화 안됨, 태그 서치가 부정확할 수 있음, 태그 저장 제한있음(varchar 범위) | |
| 2. 태그를 위한 테이블 하나 생성 후 저장 | |
| 장점: 좀더 정규화 | |
| 3. 태그 테이블과 N:M 테이블 생성 후 저장 | |
| 장점: 3NF 정규화 | |
| 단점: 쿼리가 복잡함, 태그 하나로 인해 테이블 2개 생성 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment