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