01. Modeling에 대한 정의
Modeling 정의
- Application의 요구사항과 Database 성능의 균형을 맞추는 것
Embedding vs Referencing
Embedding
- 한번에 읽어와서 Read가 빠름
- 데이터 중복 발생가능. 데이터 수정 시 여러 도큐먼트 수정 필요
Referencing
- lookup으로 조인해야하여 Read 느림
- 데이터 중복 없어서 write 빠름
Reducing Long Array’s
- 도큐먼트 사이즈가 16MB 넘어갈 경우 더이상 데이터 입력 불가