-
Collection-oriented storage, easy to store object type data.
-
Pattern freedom.
-
Support dynamic query.
-
Full indexing is supported, including inner objects.
-
Support query.
-
Replication and failback are supported.
-
Use efficient binary data storage, including large objects (such as videos, etc.).
-
Fragmentation is automatically handled to support scalability at the cloud level
-
Supports drivers for Python, PHP, Ruby, Java, C, C#, Javascript, Perl and C++ languages, and the community also provides drivers for platforms such as Erlang and .NET.
-
The file storage format is BSON (an extension of JSON).
-
Accessible via the web.
-
Collection-oriented storage: suitable for storing data in the form of objects and JSON.
-
Dynamic query: Mongo supports rich query expressions. The query command uses JSON format markup to easily query objects and arrays embedded in the document.
-
Full indexing support : including document embedded objects and arrays. Mongo's query optimizer analyzes the query expression and generates an efficient query plan.
-
Query monitoring: Mongo includes a monitoring tool for analyzing the performance of database operations.
-
Replication and automatic failover: Mongo database supports data replication between servers, master-slave mode and mutual replication between servers. The primary goal of replication is to provide redundancy and automatic failover.
-
Efficient traditional storage: supports binary data and large objects (such as photos or pictures)
-
Automatic sharding to support cloud-level scalability: The automatic sharding feature supports horizontal database clusters with the ability to dynamically add additional machines.
First of all, let's analyze the characteristics and advantages and disadvantages of mysql and mongodb.
Below are some screenshots of the ppt I made before.