You are previewing NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence.

NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence

Cover of NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence by Martin Fowler... Published by Addison-Wesley Professional
O'Reilly logo

Chapter 9. Document Databases

Documents are the main concept in document databases. The database stores and retrieves documents, which can be XML, JSON, BSON, and so on. These documents are self-describing, hierarchical tree data structures which can consist of maps, collections, and scalar values. The documents stored are similar to each other but do not have to be exactly the same. Document databases store documents in the value part of the key-value store; think about document databases as key-value stores where the value is examinable. Let’s look at how terminology compares in Oracle and MongoDB.

Image

The _id is a special field that is found on ...

The best content for your career. Discover unlimited learning on demand for around $1/day.