MongoDB: Overview

2017-12-16  本文已影响0人  庞贝船长

Documents

A record in MongoDB is a document, which is a data structure composed of field and value pairs.

document

!Note: Documents have dynamic schema. Dynamic schema means that documents in the same collection do not need to have the same set of fields or structure, and common fields in a collection's documents may hold different types of data.

Collections

MongoDB stores documents in collections. Collections are analogous to tables in relational databases.

collections

Databases

In MongoDB, databases hold collections of documents.

BSON

MongoDB stores data records as BSON documents. BSON is a binary representation of JSON documents, though it contains more data types than JSON.

read more: BSON types

References

上一篇 下一篇

猜你喜欢

热点阅读