001. First article on MongoDB practice

Source: Internet
Author: User
I. MongoDB Introduction

MongoDB is a high-performance, open-source, and open-mode document-based database. It is currently the most popular nosql database product, it can be used in many scenarios to replace traditional relational databases or key/value storage methods. MongoDB is developed using C ++. MongoDB Official Website: http://www.mongodb.org

MongoDB is a product between relational databases and non-relational databases. It has the most abundant functions and features like relational databases. The supported data structure is very loose and is similar to the JSON bjson format. Therefore, you can store complex data types.

The biggest feature of MongoDB is that it supports a very powerful query language. Its syntax is a bit 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 indexing. It is a set-oriented, free-of-charge document-type database.

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

  • It is designed for centralized storage and is easy to store object-type data.
  • Free mode.
  • Supports dynamic query.
  • Supports full indexing, 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 scalability at the cloud computing level
  • Supports Ruby, Python, Java, C ++, PHP, and other languages.
  • The file storage format is bson (a json extension)
  • Accessible through the network

1. Set-oriented

Data is grouped into a data set, which is called a set. Each set has a unique identification name in the database and can contain unlimited data target documents. The concept of a set is similar to that of a table in a relational database. The difference is that it does not need to define any schema.


2. Free mode

Without knowing any structure definition, any different structure data can be stored in the same set:

 
{"Name": "James"} {"Age": 10, "Address": "Beijing '}

3. Document Type

The stored data is a set of key-value pairs, and the key is a string. The value can be of any type, package array, or document in a data disturbance type set. The data format is called "bson", that is, "binary serialized document ".
Notation ."

Ii. MongoDB Installation

MongoDB installation online has a lot of tutorials and Methods: Please refer to the http://www.cnblogs.com/czxu/archive/2011/06/13/2080162.html


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.