美文网首页
MongoDB: Overview

MongoDB: Overview

作者: 庞贝船长 | 来源:发表于2017-12-16 20:33 被阅读0次

Documents

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

document
  • Field name
    Field names are strings.

  • The _id Field
    In MongoDB, each document stored in a collection requires a unique _id field that acts as a primary key. If an inserted document omits the _id field, the MongoDB driver automatically generates an ObjectId for the _id field.

!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

相关文章

  • MongoDB Objects

    Overview MongoDB Objects MongoDB Memory-Mapped File Mongo...

  • MongoDB: Overview

    Documents A record in MongoDB is a document, which is a d...

  • markdown测试

    overview overview overview overview hello world overview ...

  • Perception I - Sensors

    Weekly Overview Bookmark this page Overview The learning ...

  • Overview

    This is a story written by Zhang Ailing, about how two in...

  • Overview

    title: Overview Blockly 简介 Blockly是一个库,它为Web和Android应用程序添...

  • Overview

    编程是什么: 在我的眼里,编程是对生产生活的一种抽象,下一层的语言是对上一层的语言的抽象,直到抽象到10,能让计算...

  • Overview

    Java NIO包括以下几个核心的组件: Channels Buffers Selectors Java NIO还...

  • Overview

    In the week 1 video lecture, Dr. Swigart introduces the c...

  • Security Overview

    Security Overview Code Signing Overview: To create a digi...

网友评论

      本文标题:MongoDB: Overview

      本文链接:https://www.haomeiwen.com/subject/cprewxtx.html