← Back to list

mongodb
by kprsnt2
⭐ 0🍴 0📅 Jan 15, 2026
SKILL.md
name: mongodb description: MongoDB best practices including schema design, indexing, and query optimization. globs: ["/models//.js", "/schemas//.js", "**/*.mongodb"] priority: 75 tags: ["database"]
MongoDB Best Practices
Schema Design
- Embed data for 1:few relationships
- Reference data for 1:many relationships
- Avoid unbounded arrays
- Use meaningful field names
- Plan for your query patterns
Indexing
- Index fields used in queries
- Use compound indexes wisely
- Monitor index size
- Use TTL indexes for expiring data
- Text indexes for search
Queries
- Use projection to limit fields
- Use aggregation pipeline for complex queries
- Avoid $where and $regex when possible
- Use explain() to analyze queries
- Paginate with skip/limit or cursor
Performance
- Use connection pooling
- Shard for horizontal scaling
- Use read preferences
- Enable compression
- Monitor with mongotop/mongostat
Security
- Enable authentication
- Use role-based access control
- Encrypt data at rest
- Use TLS for connections
- Validate input data
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon