[1]韩兵,李晶晶,方英兰.基于 JDBC 数据管理与查询优化的研究[J].计算机技术与发展,2018,28(09):176-180.[doi:10.3969/ j. issn.1673-629X.2018.09.036]
 HAN Bing,LI Jing-jing,FANG Ying-lan.Research on Data Management and Query Optimization Based on JDBC[J].,2018,28(09):176-180.[doi:10.3969/ j. issn.1673-629X.2018.09.036]
点击复制

基于 JDBC 数据管理与查询优化的研究()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
28
期数:
2018年09期
页码:
176-180
栏目:
应用开发研究
出版日期:
2018-09-10

文章信息/Info

Title:
Research on Data Management and Query Optimization Based on JDBC
文章编号:
1673-629X(2018)09-0176-05
作者:
韩兵1李晶晶1方英兰2
1. 北方工业大学 计算机学院,北京 100144; 2. 大规模流数据集成与分析技术北京市重点实验室,北京 100144
Author(s):
HAN Bing1LI Jing-jing1FANG Ying-lan2
1. School of Computer Science,North China University of Technology,Beijing 100144,China; 2. Beijing Key Laboratory on Data Integration and Analysis Technology of Large-scale Stream,Beijing 100144,China
关键词:
JDBCWeb 应用热点数据缓存置换缓存价值命中率
Keywords:
JDBCWeb applicationhot datacache replacementcache valuehit rate
分类号:
TP311.1
DOI:
10.3969/ j. issn.1673-629X.2018.09.036
文献标志码:
A
摘要:
在大多数 Web 应用系统中,当用户浏览数据时,每次都向数据库发送查询请求的做法会使系统性能下降,查询速度降低,而利用缓存技术将部分数据缓存在 Web 应用服务中可以减少对数据库的查询操作,提高数据的利用率和检索效率。 JDBC 是应用程序与数据库进行交互的桥梁,通过对 JDBC 中类和接口进行修改和扩展,设计了一个基于 JDBC 数据管理的模型,其中重点研究了缓存置换机制。 根据系统对缓存项访问的频率、时间间隔以及缓存项占用存储空间的大小等特性,结合最近最少使用算法,提出了一种基于价值函数的缓存置换算法,选择价值最小的缓存项进行置换,并设计模拟实验进行验证。 实验结果表明,在 JDBC 管理的缓存空间中利用该算法可以取得较高的缓存命中率,服务器的响应速度也得到了提高。
Abstract:
In most Web applications,sending a query request to the database each time when users browse the content will lead to a decline in system performance and a low query speed. Reserving some of the data in Web application services using the caching technology can reduce the query operation of the database and improve the data utilization and retrieval efficiency. JDBC is the bridge between the application and the database,so we design a model based on JDBC data management by modifying and extending the classes and interfaces in JDBC,which focuses on the cache replacement mechanism. Combined with the least recently used algorithm,we propose a cache replacement algorithm of cache value according to characteristics such as frequency of data access,time interval and size of cache entries,selecting the cache item with least value for replacement and designing the simulation experiment for verification. The experiment shows that this algorithm can achieve high data hit rate in the cache space about JDBC management and improve the server response speed.

相似文献/References:

[1]谷庆华 李成贵.基于Java语言实现数据库的访问[J].计算机技术与发展,2008,(02):13.
 GU Qing-hua,LI Cheng-gui.Realizing Database Accessing Based on Java[J].,2008,(09):13.
[2]朱平付 季桂树 尹辉.基于轻量级J2EE架构的一种持久层设计[J].计算机技术与发展,2008,(06):94.
 ZHU Ping-fu,JI Gui-shu,YIN Hui.A Solution of Data Persistence Based on Lightweight J2EE Framework[J].,2008,(09):94.
[3]王连华 王华[] 鲁大营.基于JSP/Servlet的加油站管理系统的设计与实现[J].计算机技术与发展,2008,(06):236.
 WANG Lian-hua,WANG Hua,LU Da-ying.Design and Implementation of Filling Station Information Management System Based on JSP/Servlet Technique[J].,2008,(09):236.
[4]周彩兰 孙琳 李素芬.基于JSP的网络数据库连接技术[J].计算机技术与发展,2006,(04):209.
 ZHOU Cai-lan,SUN Lin,LI Su-fen.Web Database Connection Technology Based on JSP[J].,2006,(09):209.
[5]渠本哲 张凝 王潜平.使用Java和XML实现数据移植[J].计算机技术与发展,2006,(09):15.
 QU Ben-zhe,ZHANG Ning,WANG Qian-ping.Implementation of Data Migration with Java and XML[J].,2006,(09):15.
[6]冯战 郝克刚 葛玮.Java中的持久性存储技术——JDBC和JDO[J].计算机技术与发展,2006,(09):46.
 FENG Zhan,HAO Ke-gang,GE Wei.The Persistence Store Technique in Java JDBC and JDO[J].,2006,(09):46.
[7]侯灿 杨宗凯 刘威.J2EE架构下连接池技术的应用与改进[J].计算机技术与发展,2006,(10):8.
 HOU Can,YANG Zong-kai,LIU Wei.Application and Improvement of Database Connection Pool Based on J2EE Architecture[J].,2006,(09):8.
[8]欧阳宏基 葛萌 赵蔷.基于JDBC与设计模式的数据库连接池实现方法[J].计算机技术与发展,2011,(01):84.
 OUYANG Hong-ji,GE Meng,ZHAO Qiang.Realization Method of Database Connection Pool Based on JDBC and Design Pattern[J].,2011,(09):84.
[9]张晓琳 李辉.基于J2EE的高校固定资产管理系统设计与实现[J].计算机技术与发展,2012,(08):177.
 ZHANG Xiao-lin,LI Hui.Design and Implementation of Higher Education Fixed Assets Management System Based on J2EE[J].,2012,(09):177.
[10]于金良[],朱志祥[],梁小江[]. 基于Flume的MySQL数据自动收集系统[J].计算机技术与发展,2016,26(12):137.
 YU Jin-liang[],ZHU Zhi-xiang[],LIANG Xiao-jiang[]. Automatic Collection System for MySQL Data Based on Flume[J].,2016,26(09):137.
[11]韩 兵,沈 冲,方英兰.基于 JDBC 的缓存数据细粒度管理的研究[J].计算机技术与发展,2019,29(12):66.[doi:10. 3969 / j. issn. 1673-629X. 2019. 12. 012]
 HAN Bing,SHEN Chong,FANG Ying-lan.Research on Fine-grained Management of Cached Data Based on JDBC[J].,2019,29(09):66.[doi:10. 3969 / j. issn. 1673-629X. 2019. 12. 012]

更新日期/Last Update: 2018-09-10