© 2023, Amazon Web Services, Inc. or its affiliates.
Why document databases
7
•Data is stored in JSON-like
documents
•Documents map naturally to
how humans model data
•Flexible schema and indexing
•Expressive query language
built for documents (ad hoc
queries and aggregations)
Documents are first-class objects
in the database
{
id: 1,
name: "sue",
age: 26,
email: "
[email protected]",
promotions: ["new user", "5%", "dog lover"],
memberDate: 2018-2-22,
shoppingCart: [
{product:"abc", quantity:2, cost:19.99},
{product:"edf", quantity:3, cost:2.99}
]
}
Document: Fields: Values