Document database
A database that stores each record as a JSON-like document with nested objects and arrays.
Definition
Documents of one kind live in a collection, without a fixed set of columns. Data that is read together is usually embedded in one document, so a page needs one lookup and no join; data that is shared or keeps growing is referenced by id instead. MongoDB, Firestore and Couchbase are document databases.
In practice
An order document contains its items as an array and the customer's id as a reference.
Learn it in context
Lessons that use this term.