This paper explores a new opportunity to improve the performance of transaction processing at the application side by merging structurely similar statements or transactions. Concretely, we re-write transactions to 1) merge similar statements using specific SQL semantics; 2) eliminate redundant reads; and 3) merge contending statements across transactions by pre-computing their aggregated effect. Following this idea, we present the design of TransactionMerger, a middleware to collect and merge transactions across different clients. We further present a static analysis tool to identify the merging opportunity without violating isolation as well as our experience of re-writing transactions in TPC-C and Spree, a popular real-world application. Our evaluation shows that such transaction merging can improve TPC-C throughput by up to 2.65X and Spree throughput by 3.52X.


翻译:本文探讨了一种在应用端通过合并结构相似的语句或事务来提升事务处理性能的新方法。具体而言,我们重写事务以实现以下目标:1) 利用特定的SQL语义合并相似语句;2) 消除冗余读取操作;3) 通过预先计算其聚合效应,合并跨事务的竞争性语句。基于这一思路,我们提出了TransactionMerger的设计,这是一个用于收集并合并来自不同客户端事务的中间件。我们进一步介绍了一种静态分析工具,用于在不违反隔离性的前提下识别合并机会,并分享了我们在TPC-C和实际流行应用Spree中重写事务的经验。评估结果表明,此类事务合并技术可将TPC-C的吞吐量最高提升2.65倍,将Spree的吞吐量提升3.52倍。

0
下载
关闭预览

相关内容

数据库( Database )或数据库管理系统( Database management systems )是按照数据结构来组织、存储和管理数据的仓库。目前数据管理不再仅仅是存储和管理数据,而转变成用户所需要的各种数据管理的方式。
干货书《数据融合:理论、方法和应用》289页
专知会员服务
130+阅读 · 2023年4月2日
数据库行业发展报告
专知会员服务
41+阅读 · 2022年10月19日
【Google】高效Transformer综述,Efficient Transformers: A Survey
专知会员服务
66+阅读 · 2022年3月17日
基于深度学习的数据融合方法研究综述
专知
37+阅读 · 2020年12月10日
用于语音识别的数据增强
AI研习社
24+阅读 · 2019年6月5日
使用 Canal 实现数据异构
性能与架构
20+阅读 · 2019年3月4日
深度文本匹配在智能客服中的应用
AI100
18+阅读 · 2018年10月24日
论文笔记之attention mechanism专题1:SA-Net(CVPR 2018)
统计学习与视觉计算组
16+阅读 · 2018年4月5日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
VIP会员
相关资讯
基于深度学习的数据融合方法研究综述
专知
37+阅读 · 2020年12月10日
用于语音识别的数据增强
AI研习社
24+阅读 · 2019年6月5日
使用 Canal 实现数据异构
性能与架构
20+阅读 · 2019年3月4日
深度文本匹配在智能客服中的应用
AI100
18+阅读 · 2018年10月24日
论文笔记之attention mechanism专题1:SA-Net(CVPR 2018)
统计学习与视觉计算组
16+阅读 · 2018年4月5日
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员