A Novel Efficient Query Strategy on Hibernate

Shuo Kuai, Yupeng Hu, Xinxiao Zhao, Dong Qin, Wentao Li, Xueqing Li
{"title":"A Novel Efficient Query Strategy on Hibernate","authors":"Shuo Kuai, Yupeng Hu, Xinxiao Zhao, Dong Qin, Wentao Li, Xueqing Li","doi":"10.1145/3316615.3316717","DOIUrl":null,"url":null,"abstract":"Database is an indispensable part of software development. In order to reduce unnecessary and redundant processes of accessing in database, the concept of Object-Relational Mapping (ORM) has been proposed and its corresponding applications have been widely accepted by developers. However, for a certain software system, accessing database systems is often one of the most common bottlenecks in performance improvement. In this paper, we propose the concept of \"reference column(s)\". In the actual business, there are many query operations with \"reference column(s)\" (non-primary) as parameters. Hibernate, as a popular ORM framework, provides excellent support for the above operation. Hibernate also implements a caching mechanism for storing query results. However, columns other than \"reference column(s)\" in these results may be frequently modified. Once any one of the above results has been updated, the corresponding searching could not be permitted to access the previous results storing in the cache. Accordingly, we propose a new hash-code based cache approach to avoid the emergence of the above problem. Extensive experiments on typical E-commerce datasets have been conducted to demonstrate the advantages of our approach.","PeriodicalId":268392,"journal":{"name":"Proceedings of the 2019 8th International Conference on Software and Computer Applications","volume":"13 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-02-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2019 8th International Conference on Software and Computer Applications","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3316615.3316717","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Database is an indispensable part of software development. In order to reduce unnecessary and redundant processes of accessing in database, the concept of Object-Relational Mapping (ORM) has been proposed and its corresponding applications have been widely accepted by developers. However, for a certain software system, accessing database systems is often one of the most common bottlenecks in performance improvement. In this paper, we propose the concept of "reference column(s)". In the actual business, there are many query operations with "reference column(s)" (non-primary) as parameters. Hibernate, as a popular ORM framework, provides excellent support for the above operation. Hibernate also implements a caching mechanism for storing query results. However, columns other than "reference column(s)" in these results may be frequently modified. Once any one of the above results has been updated, the corresponding searching could not be permitted to access the previous results storing in the cache. Accordingly, we propose a new hash-code based cache approach to avoid the emergence of the above problem. Extensive experiments on typical E-commerce datasets have been conducted to demonstrate the advantages of our approach.
一种新的基于Hibernate的高效查询策略
数据库是软件开发中不可缺少的一部分。为了减少数据库中不必要和冗余的访问过程,对象关系映射(Object-Relational Mapping, ORM)的概念被提出并得到了广泛的应用。然而,对于某个软件系统来说,访问数据库系统往往是性能改进中最常见的瓶颈之一。在本文中,我们提出了“参考列”的概念。在实际业务中,有许多带有“引用列”的查询操作。(非主)作为参数。Hibernate作为一种流行的ORM框架,为上述操作提供了出色的支持。Hibernate还实现了用于存储查询结果的缓存机制。但是,这些结果中的“参考列”以外的列可能经常被修改。一旦上述任何一个结果被更新,就不允许相应的搜索访问存储在缓存中的先前结果。因此,我们提出了一种新的基于哈希码的缓存方法来避免上述问题的出现。在典型的电子商务数据集上进行了大量的实验,以证明我们的方法的优势。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信