MongoDB Introduction
MongoDB is a product between relational database and non relational database, and is the most powerful and relational database in the relational database. The data structure he supports is very loose and is a JSON-like Bjson format, so you can store more complex data types. The biggest feature of MongoDB is that the query language he supports is very powerful, and its syntax is somewhat similar to an object-oriented query language, which can almost achieve most of the functions of a relational database single table query, and also supports indexing of data. It is characterized by high-performance, easy to deploy, easy to use, storage data is very convenient.
MongoDB Functional characteristics
1, oriented to the collection of storage, easy to store the object type of data.
Data is grouped in a dataset, called a collection, where each collection has a unique identification name in the database and can contain an unlimited number of documents. In the Philippine relational database The concept of a set is similar to a table in a relational database, and the difference is that he does not need to define any patterns.
2. Free mode
For files stored in the MongoDB database, we do not need to know any of its structure definitions. If necessary, you can store files of different structures in the same database.
3. Support Dynamic Query
4. Supports full indexing, including internal objects.
5, support replication and recovery.
6, the use of efficient binary data storage, including large objects (such as video)
7, automatic processing of debris to support the level of cloud computing scalability.
8, support Ruby, PYTHON, JAVA, C + +, PHP and many other languages.
9, file storage format for Bson (a JSON extension)
Bson (Binary serialized document Format) is a stored form that is stored as a row of key-value pairs, which is stored in a collection. Keys are used to identify a document, a string type, and a value that can be a variety of complex file types.
10, can be accessed through the network.
The MongoDB server can run on Linux, Windows or OS X platforms, support 32-bit and 64-bit applications, and default port 27017. It is recommended to run on 64-bit platforms because the maximum file supported by MongoDB in 32-bit mode runs is 2GB.
MongoDB Data Architecture
As shown in the following figure
Here for beginners to understand this, and relational database, the concept of the set here can be seen as a table, the concept of the document can be seen as a record in the table, a collection can have more than one document, and document can be nested.
The next chapter focuses on the download and installation of MongoDB