数据库支持的Web应用程序:它们工作得如何?
Database-Backed Web Applications in the Wild: How Well Do They Work?
摘要:
大多数现代数据库支持的Web应用程序都构建在对象关系映射(ORM)框架上。虽然ORM框架通过将持久数据抽象为对象来简化应用程序开发,但这种便利性通常伴随着性能成本。在本文中,我们提出了CADO,一个工具,分析应用程序的逻辑和它与数据库的交互使用Ruby on Rails的ORM框架。CADO包括一个静态程序分析器,一个剖析器和一个合成数据生成器,以提取和理解应用程序的性能特征。我们使用CADO分析了27个真实世界的开源Rails应用程序的性能问题,涵盖了在线论坛、电子商务、项目管理、博客等领域。基于结果,我们发现了一些导致应用程序性能次优的问题,包括发布查询、如何使用结果集和物理设计。我们建议可能的补救措施,为每个问题,并强调新的研究机会,从他们。
英文摘要:
Most modern database-backed web applications are built upon Object Relational Mapping (ORM) frameworks. While ORM frameworks ease application development by abstracting persistent data as objects, such convenience often comes with a performance cost. In this paper, we present CADO, a tool that analyzes the application logic and its interaction with databases using the Ruby on Rails ORM framework. CADO includes a static program analyzer, a profiler and a synthetic data generator to extract and understand application's performance characteristics. We used CADO to analyze the performance problems of 27 real-world open-source Rails applications, covering domains such as online forums, e-commerce, project management, blogs, etc. Based on the results, we uncovered a number of issues that lead to sub-optimal application performance, ranging from issuing queries, how result sets are used, and physical design. We suggest possible remedies for each issue, and highlight new research opportunities that arise from them.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。