The characteristics and merits of MySQL and MongoDB

Source: Internet
Author: User
Tags failover mongodb

Introduced:

MongoDB is a database based on distributed file storage. High-performance, open-source, modeless, document-based databases that provide scalable, high-performance data storage for Web applications are among the hottest in the current NoSQL database, written in the C + + language.

MongoDB is a product between a relational database and a non-relational database, and is the most versatile and most like relational database in a non-relational database. The data structure he supports is very loose and is a JSON-like Bson format, so you can store more complex data types. MONGO's biggest feature is that the query language he supports is very powerful, and its syntax is a bit like an object-oriented query language that almost implements most of the functionality of a relational database single-table query, and also supports indexing of data.

Default port: 27017

Characteristics:

High performance, easy to deploy, easy to use, easy to store data. The main features are:

    • For collection storage, easy to store data for object types.

    • Mode of freedom.

    • Supports dynamic queries.

    • Supports full indexes, including internal objects.

    • Support Queries.

    • Supports replication and recovery.

    • Use efficient binary data storage, including large objects such as video.

    • Automatically process fragmentation to support scalability at the cloud level

    • Drivers for Python,php,ruby,java,c,c#,javascript,perl and C + + languages are supported, and drivers for Erlang and. NET platforms are also available in the community.

    • The file storage format is Bson (an extension of JSON).

    • can be accessed over the network.

Function:

    • Collection-oriented storage: suitable for storing objects and data in JSON form.

    • Dynamic Query: The MONGO supports rich query expressions. Query directives use a JSON-style tag to easily query objects and arrays embedded in the document.

    • Full Index support : Includes embedded objects and arrays in the document. The query optimizer of MONGO parses the query expression and generates an efficient query plan.

    • Query monitoring: MONGO contains a monitoring tool for analyzing the performance of database operations.

    • replication and automatic failover: The MONGO database supports data replication between servers and supports replication between master-slave mode and server. 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)

    • Auto-sharding to support cloud-scale scalability: Automatic sharding supports a level of database clustering, adding additional machines dynamically.

First, we analyze the characteristics and merits of MySQL and MongoDB.
Here is the part of the PPT I used to do.



The characteristics and merits of MySQL and MongoDB

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.