The Document Model Flashcards

(11 cards)

1
Q

What is a Document?

A

Single record in MongoDB

Stored as a JSON-like BSON object

Represents a flexible, self contained unit of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is BSON?

A

Binary JSON, the format used by MongoDB to store and query documents, supporting rich data types like arrays, dates, and embedded objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Collection?

A

Similar to a Table in a Relational Database, without a fixed schema

It’s a group of MongoDB Documents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Embedded Document

A

A document nested within another document, allowing hierarchial data storage (e.g. an “addres” document inside a “user” document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Schema Flexibility

A

The ability of mongodb documents to have varying structures within the same collection, enabling dynamic and evolving data models

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why is the Document Model “Easy”

A

Aligns with how developers thing about data in application (e.g. JSON-like structures),

Intuitive Data Modeling

Reduces the learning curve

Simplifying development

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why is the Document Model “Flexible”

A

Collections can store documents with different fields

This allows the data model to evolve without rigid constraints

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why is the Document Model “Faster”

A

Denormalization - storing related data together eliminates need for expensive joins, speeding up queries

Data locality - embedding related data in a single document reduces disk I/o, improving retrieval performance

Query expressiveness; aggregation framework and indexing optimize complex queries, ensuring fast data access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why is the Document Model “Versatile”

A

*Rich data types, BSON supports arrays, embedded docuemnts, geospatial data, and more, accommodating diverse use-cases like IoT, real time analytics, and content management.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the Benefits of the Document Model

A

Easy, Flexible, Faster, Versatile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Document Model Core Capabilities

A

Superior Architecture - Aligns with how developers thing about data in application (e.g. JSON-like structures),

Faster Innovation - with data normalization, data locality, and query expressiveness, you can build faster without costly schema changes

Flexible Deployment - run self hosted, in the cloud, or hybrid.

Reduced Complexity - customers don’t need to stitch together different solutions.

Enterprise Security - there’s encryption at ever stage (in transit, at rest, and in-use) - with Queryable encryption, you can encrypt your sensitive data and run queries directly on it , without having to decrypt it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly