Mongodb introduction, mongodb

Source: Internet
Author: User
Tags mongodb server relational database table

Mongodb introduction, mongodb

Brief description:

MongoDB is a distributed file storage-based database. Written in C ++. It is designed to provide scalable, high-performance data storage solutions for WEB applications.

MongoDB isRelational DatabaseProducts between non-relational databases are the most functional and most like relational databases in non-relational databases.

The supported data structure is very loose and is similar to the json bson format, so it can store more complex data types.

The biggest feature of Mongo is that it supports a very powerful query language. Its syntax is somewhat similar to an Object-Oriented Query Language. It can almost implement most of the functions similar to single-table queries in relational databases, it also supports data creationIndex.

When the server load is high, adding more nodes ensures the server performance.

MongoDB is designed to provide scalable, high-performance data storage solutions for WEB applications.

MongoDB stores data as a document. MongoDB is a distributed file storage-based database.

Features:

It features high performance, ease of deployment, and ease of use, making it easy to store data. Features:

* It is designed for set storage and is easy to store object-type data.

* Free mode.

* Supports dynamicQuery.

* Full indexes are supported, including internal objects.

* Query is supported.

* Supports replication and fault recovery.

* Use efficient binary data storage, including large objects (such as videos ).

* Automatic fragment processing to support the scalability at the cloud computing level.

* SupportedRUBY,PYTHON,JAVA,C ++,PHP,C #And other languages.

* The file storage format is BSON (a json extension ).

* You can useNetworkAccess.

Usage principle:

Collection-Oriented means that data is stored in a data set by group and called a Collection ). Each set has a unique identification name in the database and can contain an infinite number of documents. The concept of a set is similar.Relational Database Service(RDBMS) in the table, the difference is that it does not need to define any schema ).

Schema-free means that we do not need to know any schema definitions for the files stored in the mongodb database. If necessary, you can store files of different structures in the same database.

The document stored in the set is saved as a key-value pair. Key is used to uniquely identify a document, which is a string type, and the value can be multipleMiscellaneousComponent type. We call this storage formBSON(Binary Serialized Document Format ).

Distributed File System:

The Distributed File System (Distributed File System) means that the physical storage resources managed by the File System are not necessarily directly connected to the local node, but are connected to the node through the computer network.

The Distributed File System is designed based on the Client/Server mode. A typical network may contain multiple servers for multi-user access. In addition, the peering feature allows some systems to assume both the client and server roles.

HBase is a distributed, column-oriented open source database. This technology comes from the Google paper "Bigtable: a structured dataDistributed Storage System.

Yonghong Data Mart is a Data storage and Data processing software developed based on its own technology. Yonghong Data Mart's distributed file storage system (ZDFS) is a transformation and expansion based on Hadoop HDFS, which centrally manages and stores files stored on all nodes in the server cluster.

Practical application:

The MongoDB server can run onLinux,WindowsOr mac OS x platform. It supports 32-bit and 64-bit applications. The default port is 27017. We recommend that you run on a 64-bit platform because MongoDB supports a maximum file size of 2 GB when running in 32-Bit mode.

Data logical structure:

The logical structure of the MongoDB architecture. The logical structure of MongoDB is a hierarchical structure. Mainly from:

Document, collection, and database. The logical structure is user-oriented. Users who use MongoDB to develop applications use the logical structure.

_ MongoDB document, which is equivalent to a row of records in a relational database.

_ Multiple documents form a collection, which is equivalent to a relational database table.

_ Multiple collections are logically organized together, that is, databases ).

_ A MongoDB instance supports multiple databases ).

MongoDB

Relational Database Service

Document)

Row)

Collection)

Table)

Database)

Database)

_ Id key:

In the data types supported by MongoDB, _ id is its own product. Let's give a brief introduction to it.

Each document stored in the MongoDB set has a default primary key _ id. The primary key name is fixed and can be any data type supported by MongoDB. The default value is ObjectId. In the schema design of relational databases, most primary keys are numeric, such as common int and long values. More often, the values of primary keys are obtained by auto-increment databases, the ordering of such primary key values sometimes shows some logic. In contrast, MongoDB was originally designed for a distributed storage system, so it does not support auto-incrementing primary keys.


Learning URL

Chinese community: http://www.mongoing.com

Online Tutorial: http://university.mongodb.com

MongoDB's official website is: http://www.mongodb.org/



Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.