Project Summary--mongodb Getting Started

Source: Internet
Author: User

This time we do campus video management system, the storage of video used to MongoDB. Compared to storing video in a disk or relational database,

MongoDB stores data and reads more quickly. The following is a general introduction to the macro.

MongoDB is a high-performance, open-source, modeless document-based database that is a popular one in the current NoSQL database. It's in a lot of scenarios

can be used instead of traditional relational databases or key/value storage methods.

---------------------------------------------------------------------------------------------------

NOSQL, the full name is not-only Sql, refers to the non-relational database. The next generation database mainly solves several key points: the non-relational, the distribution

, open-source, level-scalable. The original goal was for large-scale Web applications, which began in early 2009 and typically features applications such as: modulo

Easy replication, simple APIs, eventual consistency (non-acid), high-capacity data, and more. NoSQL is the number key-we use most.

Value storage, and of course other document-type, Columnstore, graph database, XML database and so on.

----------------------------------------------------------------------------------------------------

Advantages of MongoDB

Efficient traditional storage: supports binary data and large objects such as photos or pictures, as well as video.

Automatic sharding to support cloud-level scalability (in the early alpha phase): Auto-sharding supports level DB clusters, dynamically adding amounts

Outside of the machine. (Guaranteed to store large objects, making reading faster).

Large, low-value data: Storing some data with a traditional relational database can be expensive, and before that, many times programmers

Traditional files are often selected for storage.


basic operation of MongoDB
As follows: Insert two data
Build a database, build a collection, insert data into the Code Red box has been marked

tree view of the resulting database


comparison of MongoDB with SQL


The data in MONGO is the following text view that is stored as a document


After a traditional database is designed to design a table's field and field data type, each record needs to follow a well-designed sheet. In MongoDB is oriented

Documents, each document can have its own number of fields, and each field can have its own data type.

Project Summary--mongodb Getting Started

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.