zoukankan      html  css  js  c++  java
  • MongoDB简述

    简介

    MongoDB is an open-source document database that provides high performance, high availability, and automatic scaling. MongoDB obviates the need for an Object Relational Mapping (ORM) to facilitate development.

    MongoDB是一个开源的文档型数据库,它提供了高性能、高可用性和自动调整性。它的出现避免了ORMapping这样的机制来加快开发。

    文档(Document)

    A record in MongoDB is a document, which is a data structure composed of field and value pairs. MongoDB documents are similar to JSON objects. The values of fields may include other documents, arrays, and arrays of documents.

    在MongoDB中一条记录就是一个文档,这种数据结构由键值对组成。MongoDB中的文档类似于Json对象。域值可以为其他的文档、数组或者文档数组。

    集合(Collections)

    MongoDB stores documents in collections. Collections are analogous to tables in relational databases. Unlike a table, however, a collection does not require its documents to have the same schema.

    In MongoDB, documents stored in a collection must have a unique _id field that acts as a primary key.

    MongoDB在集合中存储文档。集合类似于关系型数据库中的表。跟表不同的是,一个集合中的文档不要求有相同的结构。在MongoDB中,在集合中存储文档必须有一个唯一的_id域来作为主键。

  • 相关阅读:
    第四章 变量的三大特征,垃圾回收机制,可变类型和不可变类型的简单表述
    第三章 有关变量的理解
    第二章 编程语言的分类及优缺点的分析
    IIS拓展访问的文件格式
    JS之HTTP请求
    HTTP请求
    HtmlAgilityPack解析html
    支付宝支付功能开发
    Web.config配置ActiveReports
    数据库连接字符串
  • 原文地址:https://www.cnblogs.com/luoaz/p/4685338.html
Copyright © 2011-2022 走看看