Smelly Relations: Measuring and Understanding Database Schema Quality

Tushar Sharma, Marios Fragkoulis, Stamatia Rizou, M. Bruntink, D. Spinellis
{"title":"Smelly Relations: Measuring and Understanding Database Schema Quality","authors":"Tushar Sharma, Marios Fragkoulis, Stamatia Rizou, M. Bruntink, D. Spinellis","doi":"10.1145/3183519.3183529","DOIUrl":null,"url":null,"abstract":"Context: Databases are an integral element of enterprise applications. Similarly to code, database schemas are also prone to smells - best practice violations. Objective: We aim to explore database schema quality, associated characteristics and their relationships with other software artifacts. Method: We present a catalog of 13 database schema smells and elicit developers' perspective through a survey. We extract embedded SQL statements and identify database schema smells by employing the DbDeo tool which we developed. We analyze 2925 production-quality systems (357 industrial and 2568 well-engineered open-source projects) and empirically study quality characteristics of their database schemas. In total, we analyze 629 million lines of code containing more than 393 thousand SQL statements. Results: We find that the index abuse smell occurs most frequently in database code, that the use of an ORM framework doesn't immune the application from database smells, and that some database smells, such as adjacency list, are more prone to occur in industrial projects compared to open-source projects. Our co-occurrence analysis shows that whenever the clone table smell in industrial projects and the values in attribute definition smell in open-source projects get spotted, it is very likely to find other database smells in the project. Conclusion: The awareness and knowledge of database smells are crucial for developing high-quality software systems and can be enhanced by the adoption of better tools helping developers to identify database smells early.","PeriodicalId":445513,"journal":{"name":"2018 IEEE/ACM 40th International Conference on Software Engineering: Software Engineering in Practice Track (ICSE-SEIP)","volume":"30 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"26","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 IEEE/ACM 40th International Conference on Software Engineering: Software Engineering in Practice Track (ICSE-SEIP)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3183519.3183529","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 26

Abstract

Context: Databases are an integral element of enterprise applications. Similarly to code, database schemas are also prone to smells - best practice violations. Objective: We aim to explore database schema quality, associated characteristics and their relationships with other software artifacts. Method: We present a catalog of 13 database schema smells and elicit developers' perspective through a survey. We extract embedded SQL statements and identify database schema smells by employing the DbDeo tool which we developed. We analyze 2925 production-quality systems (357 industrial and 2568 well-engineered open-source projects) and empirically study quality characteristics of their database schemas. In total, we analyze 629 million lines of code containing more than 393 thousand SQL statements. Results: We find that the index abuse smell occurs most frequently in database code, that the use of an ORM framework doesn't immune the application from database smells, and that some database smells, such as adjacency list, are more prone to occur in industrial projects compared to open-source projects. Our co-occurrence analysis shows that whenever the clone table smell in industrial projects and the values in attribute definition smell in open-source projects get spotted, it is very likely to find other database smells in the project. Conclusion: The awareness and knowledge of database smells are crucial for developing high-quality software systems and can be enhanced by the adoption of better tools helping developers to identify database smells early.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
臭关系:测量和理解数据库模式质量
上下文:数据库是企业应用程序的一个组成部分。与代码类似,数据库模式也容易产生气味——违反最佳实践。目的:我们的目标是探索数据库模式的质量、相关特征以及它们与其他软件工件的关系。方法:我们提出了13种数据库模式气味的目录,并通过调查得出开发人员的观点。利用开发的DbDeo工具提取嵌入式SQL语句,识别数据库模式气味。我们分析了2925个生产质量系统(357个工业项目和2568个设计良好的开源项目),并实证研究了它们的数据库模式的质量特征。我们总共分析了6.29亿行代码,其中包含超过39.3万条SQL语句。结果:我们发现索引滥用气味最常发生在数据库代码中,使用ORM框架并不能使应用程序免受数据库气味的影响,并且与开源项目相比,一些数据库气味,如邻接表,更容易发生在工业项目中。我们的共现分析表明,只要发现工业项目中的克隆表气味和开源项目中的属性定义值气味,就很有可能发现项目中的其他数据库气味。结论:数据库气味的意识和知识对于开发高质量的软件系统至关重要,并且可以通过采用更好的工具来帮助开发人员早期识别数据库气味来增强。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Modern Code Review: A Case Study at Google A Study of the Organizational Dynamics of Software Teams Echoes from Space: Grouping Commands with Large-Scale Telemetry Data Practical Selective Regression Testing with Effective Redundancy in Interleaved Tests Mind the Gap: Can and Should Software Engineering Data Sharing Become a Path of Less Resistance?
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1