Data modeling patterns and anti-patterns for MongoDB, maintained by MongoDB. Contains 33 rules across 5 categories, prioritized by impact. Bad schema is the root cause of most MongoDB performance and cost issues—queries and indexes cannot fix a fundamentally wrong model.
| Priority | Category | Impact | Prefix | Rules |
| 1 | Schema Anti-Patterns | CRITICAL | antipattern- | 7 | | 2 | Schema Fundamentals | HIGH | fundamental- | 5 | | 3 | Relationship Patterns | HIGH | relationship- | 6 | | 4 | Design Patterns | MEDIUM | pattern- | 12 | | 5 | Schema Validation | MEDIUM | validation- | 3 |
MongoDB 스키마 디자인 패턴 및 안티 패턴. 데이터 모델 설계, 스키마 검토, SQL에서 마이그레이션 또는 스키마 문제로 인한 성능 문제 해결 시 사용합니다. "디자인 스키마", "포함 대 참조", "MongoDB 데이터 모델", "스키마 검토", "무제한 배열", "일대다", "트리 구조", "16MB 제한", "스키마 유효성 검사", "JSON 스키마", "시계열", "스키마 마이그레이션", "다형성", "TTL", "데이터 수명 주기", "아카이브", "인덱스 폭발", "불필요"에 대해 트리거됩니다. 인덱스", "근사 패턴", "문서 버전 관리". 출처: romiluz13/mongodb-agent-skills.