relational database and NoSQL database

Source: Internet
Author: User
Advantages and disadvantages of relational database

Advantages:

  1. Can do transaction processing, so as to ensure the consistency of data;
  2. Can be a join, such as multi-table query;
  3. Because of SQL standardization, the cost of data updates is small (the same fields are basically only one place).

Disadvantages:

  1. The write processing of large amount of data is not easy;
  2. If the table data volume is too large, it is not easy to do index or table structure update;
  3. When the field is not fixed, the application will be difficult;
  4. Not fast enough for simple query processing;
  5. Expansion costs are expensive.
The pros and cons of NoSQL databases

Advantages:

  1. Cost: NoSQL databases are simple and easy to deploy, basically open source software, and do not need to spend a lot of money like Oracle to purchase, compared with the relational database price is cheap;
  2. Query speed: NoSQL database stores data in cache, relational database stores data in hard disk, natural query speed is far less than NoSQL database;
  3. Format for storing data: NoSQL storage format is key,value form, document form, picture form and so on, so can store the basic type and object or the collection of various formats, and the database only supports the basic type;
  4. NoSQL databases are distributed and easy to scale.

Disadvantages:

  1. No transaction processing;
  2. No support for SQL is provided;
  3. Although disk scanning is reduced, it also results in redundancy of the data.
Summarize

relational databases and NoSQL databases are not opposites but complementary relationships, that is, using relational databases in general, and using NoSQL databases when it is appropriate to use NoSQL, to make up for the lack of a relational database for NoSQL databases.

relational database and NoSQL database

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.