当前位置:网站首页>Differences between SQL and NoSQL of mongodb series
Differences between SQL and NoSQL of mongodb series
2022-06-13 06:45: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 databasesDistributed
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 solutionsstructure
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 bekey/valueKey value of , It can also be document oriented 、 Column oriented 、 Graphics based . therefore SQL It is more suitable for applications that need multi line transactionsBusiness
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. |
Legend from :https://www.pdai.tech/md/db/nosql-mongo/mongo-x-basic.html
边栏推荐
- 机器学习笔记 - 监督学习备忘清单
- Kotlin collaboration - start and cancel, scope
- New Taishan crowdfunding business diversion fission growth model in 2022
- ML之FE:Vintage曲线/Vintage分析的简介、计算逻辑、案例应用之详细攻略
- How to seize the bonus of social e-commerce through brand play to achieve growth and profit?
- 景联文科技:数据标注行业现状及解决方案
- JNI exception handling
- Custom view subtotal
- Comment utiliser le logiciel wangyou DFM pour l'analyse des plaques froides
- Hidden and wx:if
猜你喜欢

In kotlin?,!,?:,:, - & gt;、== Brief description of symbols

Chain 2+1 reward, what kind of mode is beautiful everyday seconds?

Gold jewelry enterprise operation mode, beautiful tiantians business solution
![[kernel] two methods of driver compilation: compiling into modules and compiling into the kernel (using miscellaneous device driver templates)](/img/7a/c8d5273e0a47d2d4b048a2905d0b16.png)
[kernel] two methods of driver compilation: compiling into modules and compiling into the kernel (using miscellaneous device driver templates)

That is, after the negative impact of gcat advertising e-commerce, is there no stable advertising e-commerce platform?

智能金融再升级,景联文科技提供数据采集标注服务

JS case Xiaomi second kill countdown New Year Countdown

MFS details (VII) -- MFS client and web monitoring installation configuration

15、 IO stream (I)

Comment utiliser le logiciel wangyou DFM pour l'analyse des plaques froides
随机推荐
MFS explanation (VI) -- MFS chunk server installation and configuration
15、 IO stream (I)
Select all select none JS code implementation
Detailed explanation of scrcpy client code walk through H264 raw stream decoding process
Wechat game execution wx Navigatetominiprogram jumps to other games and returns to the black screen
上位机开发(固件下载软件之架构设计)
In the era of membership based social e-commerce, how do businesses build their own private domain traffic pool?
Kotlin basic definition class, initialization and inheritance
[SketchUp 2021] CAD file import and modeling in the sketch master (establish elevation model in the sketch master by using CAD drawings), and the sketch master exports 2D, 3D and elevation effects of
package-lock. json
The processing and application of C language to documents
Pngquant batch bat and parameter description
Overview of demoplayer program framework design of ijkplayer
【Kernel】驱动编译的两种方式:编译成模块、编译进内核(使用杂项设备驱动模板)
【云原生 | Kubernetes篇】Kubernetes 配置
Brief introduction to basic usage of echart
New Taishan crowdfunding business diversion fission growth model in 2022
上位机开发(固件下载软件之详细设计)
BlockingQueue source code
[SketchUp 2021] sketch master's image output and rendering style description [edge setting, plane setting, background setting, watermark setting, modeling setting, sky background creating sky, creatin