MySQL的鍵值儲存以及與MongoDB的對比
Faster and faster, that is what we want from our databases. And the biggest roadblock for the MySQL Dragster is the speed of the hard disk, right? No, I'm not going to debate that, that is just the case. And how do you fix that then? Well, if what is limiting your dragster is a roadblock, then either you drive round the roadblock of you make it disappear faster, or in computer terms:
1. Avoid using the disk by instead putting as much data as you can in RAM
2. Use faster disks (like SSDs)
Now, to be honest, this analogy isn't that good because the performance limiting factor of the disk is so huge, and contrary to popular belief, it's not getting any better! But we have SSDs you say? Yes, that makes the hard drive faster, but the CPU and RAM are getting even faster! But let's assume that we have enough memory so we do not need the disk? Will just about everything go at the speed of light? Nope, what happens here is that stuff that wasn't even noticeable in terms of limiting performance when the disk was there, as disk-I/O is such a huge bottleneck, suddenly shows it's dirty face!
Like this: As the CPU cores are getting faster, but not that much faster anymore, due to physical limitations, we have more and more of these CPU cores instead. And suddenly, any limitation in getting those CPUs to work well together suddenly turns into a major headache! Like a mutex shared by all threads. Like the Query Cache mutex in MySQL for example!
1. Avoid using the disk by instead putting as much data as you can in RAM
2. Use faster disks (like SSDs)
Now, to be honest, this analogy isn't that good because the performance limiting factor of the disk is so huge, and contrary to popular belief, it's not getting any better! But we have SSDs you say? Yes, that makes the hard drive faster, but the CPU and RAM are getting even faster! But let's assume that we have enough memory so we do not need the disk? Will just about everything go at the speed of light? Nope, what happens here is that stuff that wasn't even noticeable in terms of limiting performance when the disk was there, as disk-I/O is such a huge bottleneck, suddenly shows it's dirty face!
Like this: As the CPU cores are getting faster, but not that much faster anymore, due to physical limitations, we have more and more of these CPU cores instead. And suddenly, any limitation in getting those CPUs to work well together suddenly turns into a major headache! Like a mutex shared by all threads. Like the Query Cache mutex in MySQL for example!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/301743/viewspace-742703/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- TIDB儲存TiKV的鍵值對資料TiDB
- MySQL 的 NULL 值是怎麼儲存的?MySqlNull
- MySQL與MongoDB設計例項對比QYMySqlMongoDB
- 981-基於時間的鍵值儲存
- 981. 基於時間的鍵值儲存
- 面向不同需求的物件儲存系統對比:Ceph與Swift物件Swift
- 資料儲存加密的主流方案對比與難點解析加密
- MySQL三種InnoDB、MyISAM和MEMORY儲存引擎對比MySql儲存引擎
- mysql 儲存過程中變數的定義與賦值操作MySql儲存過程變數賦值
- MongoDB 儲存引擎與內部原理MongoDB儲存引擎
- 儲存結構的種類與比較
- MongoDB文件儲存MongoDB
- 基於 SmartX 分散式儲存的 RDMA 與 TCP/IP 技術與效能對比分散式TCP
- 儲存技術對比:NVMe與SATA孰強孰弱?
- MySQL null值儲存,null效能影響MySqlNull
- 提升Raft以加速分散式鍵值儲存Raft分散式
- Js 比較兩個物件的鍵名與鍵值是否相等JS物件
- 與MSSQL對比學習MYSQL的心得MySql
- Mysql 行的儲存格式MySql
- 理解mysql的儲存引擎MySql儲存引擎
- 基於 SmartX 分散式儲存的 iSCSI 與兩種 NVMe-oF 技術與效能對比分散式
- 說說自己對於 MySQL 常見的兩種儲存引擎:MyISAM與 InnoDB的理解MySql儲存引擎
- Python 和 c++/c/java 對於負數的儲存方式對比PythonC++Java
- Mysql與mongodb的區別MySqlMongoDB
- MySQL索引、事務以及儲存引擎的相關知識和命令MySql索引儲存引擎
- Hive -------- 使用mysql儲存hive後設資料,Mysql的安裝以及配置步驟HiveMySql
- MongoDB--三、儲存引擎MongoDB儲存引擎
- mysql的left join和inner join的效率對比,以及如何優化MySql優化
- PostgreSQL初體驗及其與MySQL的對比MySql
- VMware 與 SmartX 分散式儲存快取機制淺析與效能對比分散式快取
- 超融合、軟體定義儲存、分散式儲存以及Server SAN的區別與聯絡分散式Server
- 深入瞭解瀏覽器儲存:對比Cookie、LocalStorage、sessionStorage與IndexedDB瀏覽器CookieSessionIndex
- MySQL中陣列的儲存MySql陣列
- Mysql 儲存過程的使用MySql儲存過程
- mySql 儲存過程與函式MySql儲存過程函式
- MySQL索引、事務與儲存引擎MySql索引儲存引擎
- mysql和orcale的儲存過程和儲存函式MySql儲存過程儲存函式
- MySQL的varchar儲存原理:InnoDB記錄儲存結構MySql
- MySQL儲存MySql