The characteristics and advantages and disadvantages of mysql and mongodb

introduce:

    MongoDB is a database based on distributed file storage. A high-performance, open-source, schema-less document database that provides scalable, high-performance data storage for WEB applications. It is a popular NoSql database and is written in C++.

    MongoDB is a product between relational databases and non-relational databases. It is the most feature-rich and most like relational databases among non-relational databases. The data structure it supports is very loose and is a JSON-like bson format, so it can store more complex data types. The biggest feature of Mongo is that the query language it supports is very powerful. Its syntax is somewhat similar to the object-oriented query language. It can almost realize most functions similar to single-table query in relational databases, and it also supports indexing of data .

Default port: 27017

 

Features:

  High performance, easy to deploy, easy to use, and very convenient to store data. The main functional features are:

  • 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.

Function:

 

  • 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.



Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327039227&siteId=291194637