当前位置:网站首页>Differences between SQL and NoSQL of mongodb series
Differences between SQL and NoSQL of mongodb series
2022-06-12 16:21:00 【SmileNicky】
When selecting a data store , Relational databases are often chosen (SQL) And non relational databases (NoSQL) Data storage , These two kinds of data have their own advantages and disadvantages , Here is a simple comparison
Relational databases vs. non relational databases
The main difference :
- Definition SQL Databases are called relational databases (RDBMS); and NoSQL Databases are called non relational databases or distributed databases
- Distributed SQL To support distribution, you need to rely on some third-party components , such as mycat Etc , and NoSQL The database supports distributed by default , In band distributed solutions
- structure SQL It stores data based on tables , therefore SQL Is a structured query language , Modifying the table structure may affect the system data storage . and NoSQL The database is a key value pair 、 Document based 、 Graphic database or wide column storage, etc , therefore NoSQL The database has a dynamic schema for unstructured data .
- Inquire about SQL You can perform multi table joint queries , therefore SQL Can handle complex business , Perform complex multi table Association queries ;NoSQL The storage structure is not fixed , It can be
key/value
Key value of , It can also be document oriented 、 Column oriented 、 Graphics based . therefore SQL It is more suitable for applications that need multi line transactions - Business SQL Follow strict transaction consistency , That is to say ACID attribute ( Atomicity 、 Uniformity 、 Isolation and persistence ), and NoSQL The database follows A distributed CAP Theorem ( Uniformity 、 Availability and partition fault tolerance ).
- expand Sometimes SQL Database performance , You can add CPU or SSD And so on to increase the load of a single server . and NoSQL It can be done by slicing or in NoSQL Add more servers to the database
Relational database | NoSQL database |
---|---|
Relational database management system RDBMS | Non relational distributed database system |
Distributed... Is not supported | Distributed is supported by default , Built in distributed solutions |
Structured query language | NoSQL The database has a dynamic schema for unstructured data |
Suitable for complex association query | It is not suitable for complex association query |
follow ACID attribute | follow CAP() follow CAP( Uniformity 、 Usability 、 Partition tolerance ) |
You can add CPU or SSD And so on to increase the load of a single server | It can be divided into pieces or in NoSQL Add more servers to the database |
Example : MySQL、PostgreSQL、Oracle、SQL Server etc. | Example : MongoDB、GraphQL、HBase、Neo4j、Cassandra etc. |
边栏推荐
- acwing788. 逆序对的数量
- Understand go modules' go Mod and go sum
- C packing and unpacking
- 34- [go] golang channel knowledge points
- Acwing788. number of reverse order pairs
- (四)GoogleNet複現
- Analysis of China's cargo transport volume, cargo transport turnover and port cargo in 2021 [figure]
- Analysis of global and Chinese shipbuilding market in 2021: the global shipbuilding new orders reached 119.85 million dwt, with China, Japan and South Korea accounting for 96.58%[figure]
- (四)GoogleNet复现
- 深入理解 Go Modules 的 go.mod 與 go.sum
猜你喜欢
Batch --03---cmdutil
Super detailed dry goods! Docker+pxc+haproxy build a MySQL Cluster with high availability and strong consistency
Acwing 798 two dimensional difference (difference matrix)
Office VR porn, coquettish operation! The father of Microsoft hololens resigns!
批量--03---CmdUtil
[tool recommendation] personal local markdown knowledge map software
Sum of acwing796 submatrix
Thread pool execution process
acwing796 子矩阵的和
【研究】英文论文阅读——英语poor的研究人员的福利
随机推荐
acwing 801. 二进制中1的个数(位运算)
【研究】英文论文阅读——英语poor的研究人员的福利
使用 .NET 升级助手将NET Core 3.1项目升级为.NET 6
vim 从嫌弃到依赖(16)——宏
acwing 798二维差分(差分矩阵)
Global and Chinese markets of automatic glue applicators 2022-2028: Research Report on technology, participants, trends, market size and share
Postgresql错误码是如何构造的
5-5配置Mysql复制 基于日志点的复制
(四)GoogleNet复现
超详细干货!Docker+PXC+Haproxy搭建高可用强一致性的MySQL集群
Match single character
puppeteer入门之 BrowserContext 类
Gopher to rust hot eye grammar ranking
面试:hashCode()和equals()
【摸鱼神器】UI库秒变LowCode工具——列表篇(一)设计与实现
acwing 797 差分
Glibc memory management model frees C library memory cache
acwing 2816. Judgement subsequence
MongoDB系列之SQL和NoSQL的区别
Acwing 1927 自动补全(知识点:hash,二分,排序)