[MongoDB] 스키마 설계 패턴
- Key-value-array{ "_id": 1, "product": "Keyboard", "attributes": [ { "name": "color", "value": "black" }, { "name": "layout", "value": "QWERTY" } ]}- Key-value-object{ "_id": 2, "product": "Monitor", "attributes": { "resolution": "1920x1080", "size": "24in" }}------------{ "_id": ObjectId("..."), "sensorId": "sensor-101", "startTime": ISODate("2025-05-28T00:00:00Z"), "en..
2025. 6. 16.
[MongoDB] 문서 설계와 사례
{ "_id": ObjectId("..."), "title": "MongoDB 시작하기", "content": "MongoDB는 문서 지향 데이터베이스로...", "author": { "name": "김개발", "email": "kim@blog.com" }, "tags": ["MongoDB", "NoSQL", "데이터베이스"], "comments": [ { "user": "이사용자", "text": "정말 유익한 글이네요!", "date": ISODate("2023-05-20") } ], "metadata": { "views": 1250, "likes": 42, "featured": true }, "published_da..
2025. 6. 16.