MongoDB Data Modeler Associate study materials
MongoDB Data Modeler Associate study resources

MongoDB Data Modeler Associate key terms

MongoDB Data Modeler Associate · Get comfortable with the vocabulary.

Embedding

Storing related data as nested subdocuments or arrays inside a single parent document so one read returns the whole aggregate, trading duplication and document growth for fewer queries.

Related: Referencing, Denormalization, Document Growth
Referencing

Storing a link such as an _id value in one document that points to a separate document, keeping data normalized but requiring additional queries or $lookup to join.

Related: Embedding, Normalization, $lookup
Normalization

Organizing data so each fact is stored once in its own collection, eliminating duplication at the cost of extra reads or aggregation stages to reassemble related records.

Related: Denormalization, Referencing
Denormalization

Deliberately duplicating data across documents or embedding it to match read patterns, accepting update complexity and possible inconsistency in exchange for faster, simpler queries.

Related: Embedding, Normalization
One-to-One Relationship

A relationship where each record on one side maps to exactly one record on the other, commonly modeled by embedding the dependent fields or by a unique reference field.

Related: One-to-Many Relationship, Embedding
One-to-Many Relationship

A relationship where one parent record relates to multiple children; modeled by an array of embedded subdocuments when bounded, or by child documents holding the parent's _id when unbounded.

Related: One-to-One Relationship, Many-to-Many Relationship, Unbounded Array
Many-to-Many Relationship

A relationship where records on both sides relate to multiple records on the other; modeled with arrays of references on one or both sides, or with a separate join collection.

Related: One-to-Many Relationship, Referencing
Unbounded Array

An array field whose element count can grow without a practical limit, risking the 16 MB document size cap and poor index behavior; usually refactored into a separate collection.

Related: Document Growth, One-to-Many Relationship
Document Growth

Increase in a document's stored size as embedded arrays or subdocuments are added, which can force the server to relocate the document and degrade write performance.

Related: Embedding, Unbounded Array
Document

The basic unit of storage in MongoDB, a BSON-encoded set of field-and-value pairs, including nested documents and arrays, identified by a unique _id field.

Related: BSON, Field, Subdocument
Collection

A named grouping of documents within a database that shares no enforced schema by default, allowing heterogeneous document shapes unless validation rules are applied.

Related: Document, Schema Validation
Subdocument

A document nested as the value of a field inside another document, useful for grouping attributes that are always read and written together with the parent.

Related: Document, Embedding, Dot Notation
BSON

The binary serialization format MongoDB uses to store documents, supporting types beyond JSON such as ObjectId, Date, Decimal128, Binary, and 64-bit integers.

Related: Document, ObjectId, Decimal128
ObjectId

A 12-byte BSON type used as the default _id value, combining a timestamp, random per-process value, and counter, so generated identifiers are roughly time-ordered.

Related: BSON, _id Field
_id Field

The mandatory unique identifier of every document; its value must be unique within the collection and an index on it is created automatically.

Related: ObjectId, Unique Index
Field

A named key in a document paired with a value; field names are strings, and the same name may hold different BSON types across documents in schemaless collections.

Related: Document, Dot Notation
Dot Notation

Path syntax using dots to address nested fields and array elements, as in address.city or items.0.sku, used in queries, updates, projections, and index keys.

Related: Subdocument, Field
Schema Validation

Collection-level rules using $jsonSchema or query operators that reject inserts and updates not matching declared field types, required fields, or allowed value ranges.

Related: Collection, Polymorphic Schema
Polymorphic Schema

A design where documents in one collection share some common fields but differ in shape or subtype, often distinguished by a discriminator field to support varied entities.

Related: Schema Validation, Subset Pattern
Schema Design Pattern

A reusable modeling technique, such as subset, bucket, or computed, applied to match document structure to known query and write access patterns.

Related: Access Pattern, Subset Pattern, Bucket Pattern
Access Pattern

The set of queries, updates, and sorts an application performs most often; identifying these first is the central step in MongoDB schema design.

Related: Schema Design Pattern, Query-Driven Design
Query-Driven Design

An approach that shapes collections, embedded fields, and indexes around how data is read and written rather than around normalized entity relationships alone.

Related: Access Pattern, Schema Design Pattern
Subset Pattern

Keeping a small, frequently accessed subset of a large related dataset embedded in the parent document while the full set lives in another collection, reducing working set size.

Related: Schema Design Pattern, Embedding, Working Set
Bucket Pattern

Grouping many small time-series or event records into a bounded number of documents, each holding a batch of entries, to reduce document count and index size.

Related: Schema Design Pattern, Time-Series Collection
Computed Pattern

Precalculating values such as totals, counts, or averages and storing them in the document so reads avoid expensive aggregation, at the cost of keeping them updated on writes.

Related: Schema Design Pattern, Access Pattern
Extended Reference Pattern

Embedding a few frequently needed fields copied from a referenced document, avoiding a join for common reads while the authoritative copy stays in its own collection.

Related: Referencing, Denormalization
Attribute Pattern

Moving a large, sparse set of similar fields into an array of key-value subdocuments so each attribute can be indexed uniformly and queried by name.

Related: Schema Design Pattern, Multikey Index
Working Set

The portion of data and indexes actively used by queries and writes at a given time; keeping it within RAM is a primary goal of schema and index design.

Related: Subset Pattern, Index Selectivity
Cardinality

The number of distinct values a field holds across documents; high-cardinality fields generally make more selective index keys than low-cardinality ones.

Related: Index Selectivity, Compound Index
Index Selectivity

How well an index key narrows the candidate documents for a query; highly selective indexes filter out most documents and reduce the work of a scan.

Related: Cardinality, Compound Index
Single Field Index

An index on one field, in ascending or descending order, that speeds equality, range, and sort operations using that field and can be multikey if the field is an array.

Related: Compound Index, Multikey Index
Compound Index

An index on multiple fields in a specified order; it supports queries on a prefix of its keys and follows the ESR guideline for equality, sort, and range fields.

Related: ESR Guideline, Index Prefix, Index Selectivity
ESR Guideline

A rule for ordering compound index keys: equality fields first, then fields used for sort, then range fields, to maximize how much of the index a query can use efficiently.

Related: Compound Index, Index Prefix
Index Prefix

The leading field or fields of a compound index; a query can use the index only if its equality and sort conditions align with a usable prefix.

Related: Compound Index, ESR Guideline
Multikey Index

An index created on a field containing an array, with one index entry per array element, enabling efficient queries on array membership and element values.

Related: Single Field Index, Attribute Pattern
Unique Index

An index that rejects inserts or updates producing duplicate key values, commonly used on natural keys and on the _id field, which is unique by default.

Related: _id Field, Compound Index
Partial Index

An index that includes only documents matching a filter expression, reducing index size and write cost when queries target a well-defined subset of the collection.

Related: Sparse Index, Index Selectivity
Sparse Index

An index that omits entries for documents missing the indexed field, saving space but only usable by queries that exclude documents lacking that field.

Related: Partial Index
TTL Index

A special single-field index on a Date value that lets the server automatically delete documents after a specified number of seconds, useful for expiring sessions or logs.

Related: Single Field Index, Time-Series Collection
Covered Query

A query fully satisfied from index keys alone, with no document fetch, possible when all queried and returned fields are part of the index and no field is excluded.

Related: Compound Index, Projection
Projection

Specifying which fields a query returns, reducing network and memory use and, when only indexed fields are requested, enabling a covered query.

Related: Covered Query, Document
Time-Series Collection

A collection type that stores measurements with a time field and metadata field, automatically organizing data into buckets and supporting optimized storage and queries.

Related: Bucket Pattern, TTL Index