kirancodes.me
To Proof Maintenance & Beyond!

Detecting performance anti-patterns for applications developed using object-relational mapping

Tse-Hsun Chen, Weiyi Shang, Zhen Ming Jiang, Ahmed E. Hassan, Mohamed N. Nasser, Parminder Flora

Abstract

Object-Relational Mapping (ORM) provides developers a conceptual abstraction for mapping the application code to the underlying databases. ORM is widely used in industry due to its convenience; permitting developers to focus on developing the business logic without worrying too much about the database access details. However, developers often write ORM code without considering the impact of such code on database performance, leading to cause transactions with timeouts or hangs in large-scale systems. Unfortunately, there is little support to help developers automatically detect suboptimal database accesses. In this paper, we propose an automated framework to detect ORM performance anti-patterns. Our framework automatically flags performance anti-patterns in the source code. Furthermore, as there could be hundreds or even thousands of instances of anti-patterns, our framework provides sup- port to prioritize performance bug fixes based on a statistically rigorous performance assessment. We have successfully evaluated our framework on two open source and one large-scale industrial systems. Our case studies show that our framework can detect new and known real-world performance bugs and that fixing the detected performance anti- patterns can improve the system response time by up to 98%.

BibTeX
@inproceedings{Chen-al:ICSE14,
  author    = {Tse{-}Hsun Chen and
               Weiyi Shang and
               Zhen Ming Jiang and
               Ahmed E. Hassan and
               Mohamed N. Nasser and
               Parminder Flora},
  title     = {Detecting performance anti-patterns for applications developed using object-relational mapping},
  booktitle = {ICSE},
  pages     = {1001--1012},
  publisher = {{ACM}},
  year      = {2014},
}

Related papers