Transparent Relational Database Caching Based on Storage Engines Using In-memory Database

Motoshi Miyamoto, Ryota Kawashima, H. Matsuo
{"title":"Transparent Relational Database Caching Based on Storage Engines Using In-memory Database","authors":"Motoshi Miyamoto, Ryota Kawashima, H. Matsuo","doi":"10.1109/CANDARW53999.2021.00082","DOIUrl":null,"url":null,"abstract":"Relational databases (RDB) can be used with in-memory cache DBs such as Redis and memcached to shorten the response time. However, programs are complicated by explicitly controlling the RDB and in-memory cache DB on the client-side. In this paper, we propose a method to implement an access function to the in-memory cache DB in the RDB storage engine, so that the client-side can use the in-memory cache DB transparently by accessing the RDB. The storage engine is implemented for MySQL. The cache is used to provide quick access to data for indexed reads. We conducted the following three evaluations. First, to evaluate a description method that does not make the client aware of the cache, we evaluated the existing method and the amount of source code. As a result, we confirmed that the amount of description could be reduced to about 1/3. Next, we evaluated the performance of MySQL and the proposed method using the same source code. As a result, the throughput was improved by up to 55%. Finally, we evaluated the overhead of our method by writing cache-aware code on the client side and evaluating our method. As a result, we confirmed that the overhead of our method is about 2.7%.","PeriodicalId":325028,"journal":{"name":"2021 Ninth International Symposium on Computing and Networking Workshops (CANDARW)","volume":"8 2 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 Ninth International Symposium on Computing and Networking Workshops (CANDARW)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CANDARW53999.2021.00082","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Relational databases (RDB) can be used with in-memory cache DBs such as Redis and memcached to shorten the response time. However, programs are complicated by explicitly controlling the RDB and in-memory cache DB on the client-side. In this paper, we propose a method to implement an access function to the in-memory cache DB in the RDB storage engine, so that the client-side can use the in-memory cache DB transparently by accessing the RDB. The storage engine is implemented for MySQL. The cache is used to provide quick access to data for indexed reads. We conducted the following three evaluations. First, to evaluate a description method that does not make the client aware of the cache, we evaluated the existing method and the amount of source code. As a result, we confirmed that the amount of description could be reduced to about 1/3. Next, we evaluated the performance of MySQL and the proposed method using the same source code. As a result, the throughput was improved by up to 55%. Finally, we evaluated the overhead of our method by writing cache-aware code on the client side and evaluating our method. As a result, we confirmed that the overhead of our method is about 2.7%.
基于内存数据库存储引擎的透明关系数据库缓存
关系数据库(RDB)可以与内存缓存数据库(如Redis和memcached)一起使用,以缩短响应时间。然而,在客户端显式地控制RDB和内存缓存DB会使程序变得复杂。在本文中,我们提出了一种在RDB存储引擎中实现对内存缓存DB的访问功能的方法,使得客户端可以通过访问RDB透明地使用内存缓存DB。存储引擎是为MySQL实现的。缓存用于为索引读取提供对数据的快速访问。我们进行了以下三次评估。首先,为了评估不让客户端意识到缓存的描述方法,我们评估了现有方法和源代码的数量。因此,我们确认描述的数量可以减少到1/3左右。接下来,我们使用相同的源代码评估MySQL和建议的方法的性能。结果,吞吐量提高了55%。最后,我们通过在客户端编写缓存感知代码并评估方法来评估方法的开销。结果,我们确认我们的方法的开销约为2.7%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信