Sloth

Author:

Cheung Alvin1,Madden Samuel2,Solar-Lezama Armando2

Affiliation:

1. University of Washington, Seattle, WA

2. MIT CSAIL, Cambridge, MA

Abstract

Many web applications store persistent data in databases. During execution, such applications spend a significant amount of time communicating with the database for retrieval and storing of persistent data over the network. These network round-trips represent a significant fraction of the overall execution time for many applications (especially those that issue a lot of database queries) and, as a result, increase their latency. While there has been prior work that aims to eliminate round-trips by batching queries, they are limited by (1) a requirement that developers manually identify batching opportunities, or (2) the fact that they employ static program analysis techniques that cannot exploit many opportunities for batching, as many of these opportunities require knowing precise information about the state of the running program. In this article, we present S loth , a new system that extends traditional lazy evaluation to expose query batching opportunities during application execution, even across loops, branches, and method boundaries. Many such opportunities often require expensive and sophisticated static analysis to recognize from the application source code. Rather than doing so, S loth instead makes use of dynamic analysis to capture information about the program state and, based on that information, decides how to batch queries and when to issue them to the database. We formalize extended lazy evaluation and prove that it preserves program semantics when executed under standard semantics. Furthermore, we describe our implementation of S loth and our experience in evaluating S loth using over 100 benchmarks from two large-scale open-source applications, in which S loth achieved up to a 3 × reduction in page load time by delaying computation using extended lazy evaluation.

Funder

Intel Science and Technology Center for Big Data and the National Science Foundation

Publisher

Association for Computing Machinery (ACM)

Subject

Information Systems

Reference67 articles.

1. Lance Andersen. 2014. JSR 221: JDBC 4.0 API Specification. http://jcp.org/en/jsr/detail?id=221. (2014). Lance Andersen. 2014. JSR 221: JDBC 4.0 API Specification. http://jcp.org/en/jsr/detail?id=221. (2014).

2. Optimization of query streams using semantic prefetching

3. Program transformations for asynchronous query submission

Cited by 5 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. A Multivocal Mapping Study of MongoDB Smells;2024 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER);2024-03-12

2. WeBridge: Synthesizing Stored Procedures for Large-Scale Real-World Web Applications;Proceedings of the ACM on Management of Data;2024-03-12

3. Semantic Graph Queries on Linked Data in Knowledge Graphs;Recent Advances in Computational Optimization;2021-12-15

4. Investigating the Effects of Object-Relational Impedance Mismatch on the Efficiency of Object-Relational Mapping Frameworks;Journal of Database Management;2020-10

5. SQLCheck: Automated Detection and Diagnosis of SQL Anti-Patterns;Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data;2020-06-11

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3