热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

ThoughtsonSmallDatum–Part2【MySQL】

数据库|mysql教程数据库-mysql教程IfyoudidnotreadmyfirstblogpostaboutMarkCallaghan’s(@markcallaghan)be

数据库|mysql教程Thoughts on Small Datum – Part 2【MySQL】
数据库-mysql教程
If you did not read my first blog post aboutMark Callaghan’s(@markcallaghan) benchmarks as documented in his blog, Small Datum, you may want toskim through it nowfor a little context.
海盗湾源码下载,vscode右键格式化,邮箱配置ubuntu,tomcat9 卸载,爬虫中点击,php文字游戏源码,佛山全网seo哪家有名,dede做招聘网站,简洁宾馆酒店网页模板lzw
——————-
搭建 个人 电影 网站源码,vscode汉化破解版,ubuntu从基础,tomcat缺jar包,爬虫ei论文,php判断ip是否合法,seo黑帽白帽技术,微信群导航网站帝国,dede装修模板lzw
On March 11th, Mark, a former Google and now Facebook database guru, published an insertion rate benchmark comparingMySQLoutfitted with theInnoDBstorage engine with twoNoSQLalternatives — basicMongoDBandTokuMX(the Tokutek high-performance distribution of MongoDB). In these particular tests Mark uses flash storage media. Here are my cliff notes (a shoutout to@mipsytipsyfor the apt description) and my thoughts on the business implications.
水电access源码,ubuntu 侧边栏添加,B站爬虫间隔,PHP陈明忠,SEO906lzw
If your big data applications are write-intensive you may already know their performance characteristics are primarily governed by insertion rate, which in turn is governed by write efficiency. In this benchmark Mark compares the insertion rates for the aforementioned databases using the open-source Indexed Insertion Benchmark (aka iiBench). He generates his data using a 100 million row database, then runs the benchmark again adding an additional 400 million rows.

Mark’s tests clearly show that MySQL (with the InnoDB storage engine), and TokuMX, outperform basic MongoDB by a wide margin. In fact, in these tests TokuMX is at least twice as fast as basic MongoDB.

I’ve graphed some of these insertion rate results for those of us who tend towardvisual learning. I used the second / larger of the two tests for the graph and included just two of his MySQL tests for simplicity (he tried a larger number of MySQL configurations with similar results). I’ve labeled the two I am using with “(c)” for compressed MySQL and “(u)” for uncompressed.

Thoughts on Small Datum – Part 2_MySQL

I show uncompressed MySQL results because they show a far better insertion rate than either TokuMX or MongoDB (not trying to hide from it). But, size really does matter. MySQL without compression has better insertion rates but the rate of database growth and the write amplification characteristics are undesirable. I.e., I feel the MySQL results with compression is the apples-to-apples comparison. You should also check out my footnote at the bottom of this post.

Bottom line: Mark’s insertion rate tests clearly show MySQL with InnoDB and TokuMX significantly outperform basic MongoDB. If your application is a write intensive NoSQL application, it will perform significantly better on MySQL or TokuMX than those running on basic MongoDB. In fact, real-world customer results and other benchmark data suggest this is just the tip of the insertion rate iceberg. With TokuMX you will more likely see a 20x – 80x improvement.

But you don’t have to take our word for it. You can try these tests, or, even better, test your own MongoDB applications running on TokuMX in your own environment bydownloading the free community version of TokuMX (or TokuDB) here. If you need it,the iiBench benchmark is available here. If you run your own tests, I’d love to hear from you.

One footnote:TokuDB(the Tokutek high-performance storage engine alternative to InnoDB) is not covered in Mark’s benchmark. It delivers better performance, smaller database size, and better write amplification characteristics than MySQL with InnoDB. But that’s a story for another blog.

You can see all the gory details on Mark’s insertion rate benchmark here.

As always, your thoughts and comments are welcome. You can also reach me on Twitter via@dcrosenlund.

Next time, inThoughts on Small Datum – Part 3, this marketer’s summary and graphs for Mark’s benchmark onTokuMX, MongoDB and InnoDB versus the insert benchmark with disks.


推荐阅读
author-avatar
幼俐佩其392
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有