MongoDB vocabulary: Freelancer level

15 MongoDB terms at the Freelancer level, each with a short definition and a link to its full page.

Updated

Study these as flash cards

Atlas Search
Full-text search built into MongoDB Atlas.
Change Streams
A real-time feed of changes to a collection.
collMod
The command that changes a collection that already exists, such as giving it a validator: db.runCommand({ collMod: "products", validator: ... }).
ESR Rule
The order for a compound index's fields: the fields matched exactly (equality) first, then the field you sort by, then the fields with a range.
executionStats
The part of explain's report that counts a query's work: nReturned, totalKeysExamined, totalDocsExamined and executionTimeMillis.
explain()
Shows how a query ran and whether it used an index.
Index Prefix
The first field, or first few fields, of a compound index; the index serves a query on its prefix, but not one on a later field alone.
NoSQL Injection
An attack that sends a query operator, such as { "$gt": "" }, where the API expects text, so the database runs a filter the attacker chose.
Read Preference
Which servers a query may read from.
Replica Set
A group of servers holding copies of the data, with automatic failover.
Shard Key
The field that decides which shard stores each document.
Sharded Cluster
MongoDB split across several shards for scale.
Transactions in MongoDB
Several document changes that succeed or fail together.
validationLevel and validationAction
A collection's two validation settings: validationLevel decides which writes are checked (strict or moderate), and validationAction what happens to a bad one (error or warn).
Write Concern
How many servers must confirm a write before it counts.

Every MongoDB term, by level