技术控

    今日:69| 主题:49211
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Simon Riggs: Cool Runnings

[复制链接]
失心人lest 发表于 2016-10-4 06:45:26
153 7

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
In anearlier post I commented on a post by Evan Klitzke on his reasons for recommending a move from PostgreSQL to MySQL.
  The summary was that the technical details were incorrect, apart from two points. This post returns to those points to discuss what we’ve done about them.
  1. When one indexed column is updated then currently all indexes need to be maintained. When you have lots of indexes this causes additional write traffic to disk and to the transaction log. The effect was described as “Write Amplification”, though that term is emotionally charged and implies something non-linear; it would be better to say just simply that the use case could be much more fully optimized than the current state.
     My colleague Pavan Deolasee has written a patch to optimize this case better, which he calls the Write Amplification Reduction Method or WARM. That’s a great name because in technical terms the optimization is a relaxation of the HOT optimization, so its quite literally a cooler name. But most importantly it works very well, measured at 77% better performance for UPDATEs on tables with 4 indexes and well over 100% performance improvement for cases with more indexes. The patch for that has been submitted to PostgreSQL project for review.
   
Simon Riggs: Cool Runnings-1 (additional,maintained,currently,technical,something)
    2. PostgreSQL indexes refer to the heap location (via Tuple Identifier, or TID) directly, whereas MySQL secondary indexes refer to the tuple they index indirectly via the Primary Key. For MySQL, this capability avoids some, but not all of the penalty associated with write amplification, though at the cost of slowing down MySQL index reads.
  My colleague Alvaro Herrera has developed a prototype for Indirect Indexes for PostgreSQL, based on enhancements to the btree index type. That seems a straightforward feature that we can add to PostgreSQL, though looks like it will work best with integer Primary Keys, much the same as MySQL. We’re seeing a 46% improvement on updates from the worst case. We have more work to do yet before we submit, but that is a pretty good start.
  Yes, Evan highlighted some cases where PostgreSQL could benefit from some tuning. So thanks very much for that, we fully and genuinely appreciate that. Again I would highlight that those are not all cases, nor even the common case for most applications.
  What I’d like to point out is that it’s about 8 weeks since Evan’s blog was published and we’ve already got two useful and effective solutions to the areas of poor performance highlighted. And what that shows is that these problems are not architectural limitations in the very heart of Postgres, they are just simple use cases that can be tuned, like many others. We’re hopeful that at least one of the above mentioned solutions is likely to get into the next release, PostgreSQL 10.0.
  If Evan had come to us with those concerns earlier then we could have fixed them sooner. PostgreSQL is rapidly moving forwards – we made more than 500 improvements in PostgreSQL 9.6 and will be making even more in the future. It’s evolving quickly because we have lots of happy users experimenting with new and interesting use cases, including many technically savvy people who outline what they want to see (like Evan!).
  Oh, and if you haven’t seen it, you really should see “Cool Runnings”, the film that is.
友荐云推荐




上一篇:Five ways to create your first C# Program
下一篇:real-interval —— 正确计算系统休眠时间的计时器
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

蔡玲玉 发表于 2016-10-4 08:39:49
我们走得太快,灵魂都跟不上了……
回复 支持 反对

使用道具 举报

Mei_K464R 发表于 2016-10-11 15:09:51
我女友不当尼姑的原因是她四级没过,庵里不收.
回复 支持 反对

使用道具 举报

丹萱 发表于 2016-10-20 06:23:36
辛苦了失心人lest,天天准时
回复 支持 反对

使用道具 举报

彭某某人 发表于 2016-11-8 07:43:19
在神经的人群里呆久了,我发现我正常了。
回复 支持 反对

使用道具 举报

少年未老爱已淡薄 发表于 2016-11-8 19:34:57
经验告诉哥,不能弯腰捡肥皂啊!
回复 支持 反对

使用道具 举报

weihunchunan 发表于 2016-11-9 17:26:54
顶一个!看帖是一种习惯,顶贴是一种态度,回帖是一种美德。
回复 支持 反对

使用道具 举报

ntrrq 发表于 2016-11-20 20:43:28
支持楼主,顶
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表