Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Introduction to the advantages and disadvantages of Relational Database and NOSQL Database

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Relational database:

1) the characteristics of relational database are:

-the data relational model is based on relational models, structured storage, and integrity constraints.

-based on two-dimensional tables and their relationships, data operations such as join, union, intersection, difference, division and so on are required.

-use structured query language (SQL) to read and write data.

Operations require data consistency, transactions and even strong consistency.

2) advantages:

-maintain data consistency (transaction processing)

-complex queries such as join can be performed.

-generalization and mature technology.

3) disadvantages:

-data reading and writing must be parsed by sql, and the performance of reading and writing for large amounts of data and high concurrency is insufficient.

-Lock is required when reading and writing data or modifying data structure, which affects concurrent operations.

-unable to adapt to unstructured storage.

It is difficult to expand.

-expensive and complicated.

NoSQL database:

1) the characteristics of NoSQL database are:

-unstructured storage.

-based on multidimensional relational model.

-has a unique usage scenario.

2) advantages:

-High concurrency, big data has strong reading and writing ability.

-basically supports distribution, easy to expand, and scalable.

-simple, weakly structured storage.

3) disadvantages:

-join and other complex operation ability is weak.

-transaction support is weak.

-poor versatility.

-complex business scenarios without complete constraints are poorly supported.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report