https://product.kyobobook.co.kr/detail/S000001032958
- NoSQL
- 집합 지향(aggregate orientation)
- 집합 무지(aggregate ignorant)
RDBMS 데이터 모델을 사용할 때 전형적인 데이터 모양
Customer |
Id |
Name |
1 |
Martin |
Orders |
Id |
CustomerId |
ShippingAddressId |
99 |
1 |
77 |
Product |
Id |
Name |
27 |
NoSQL Distilled |
BillingAddress |
Id |
CustomerId |
AddressId |
55 |
1 |
77 |
OrderItem |
Id |
OrderId |
ProductId |
Price |
100 |
99 |
27 |
32.45 |
Address |
Id |
City |
77 |
Chicago |
OrderPayment |
Id |
OrderId |
CardNumber |
BillingAddressId |
txnId |
33 |
99 |
1000-1000 |
55 |
abelif879rft |
집합 데이터 모델 샘플 데이타
// 고객
{
"id": 1,
"name": "Martin",
"billingAddress": [{"citi": "Chicago"}]
}
// 주문
{
"id": 99,
"customerId": 1,
"orderItems": [
{
"productId": 27,
"price": 32.45,
"productName": "NoSQL Distilled"
}
],
"shippingAddress": [{"city": "Chicago"}],
"orderPayment": [
{
"ccinfo": "1000-1000-1000-1000",
"txnId": "abelif879rft",
"billingAddress": {"city": "Chicago"}
}
]
}