J4 ›› 2013, Vol. 31 ›› Issue (2): 210-214.

• 论文 • 上一篇    下一篇

基于强类型DataSet的批量数据导入的优化算法

孙鹏1, 刑千里1, 李永丽2, 董立岩1, 张亮1, 尹相杰1   

  1. 1. 吉林大学 计算机科学与技术学院, 长春 130012; 2. 东北师范大学 计算机科学与信息技术学院, 长春 130117
  • 收稿日期:2013-01-04 出版日期:2013-03-23 发布日期:2013-06-05
  • 作者简介:孙鹏(1989—), 男, 山东莒南人, 吉林大学硕士研究生, 主要从事数据挖掘研究, (Tel)86-13756012540(E-mail)pengsun123@yahoo.com.cn; 董立岩(1966—), 男, 长春人, 吉林大学教授, 博士, 硕士生导师, 主要从事数据挖掘研究, (Tel)86-18604315166(E-mail)dongly@jlu.edu.cn;通讯作者: 李永丽(1965—), 女, 哈尔滨人, 东北师范大学副教授, 博士, 主要从事信息安全研究, (Tel)86-13314390063(E-mail)Liyl603@nenu.edu.cn。

Optimization Algorithm for Bulk Data Import Based on Typed Dataset

SUN Peng1, XING Qian-li1, LI Yong-li2, DONG Li-yan1, ZHANG Liang1, YIN Xiang-jie1   

  1. 1. College of Computer Science and Technology, Jilin University, Changchun 130012, China;2. School of Computer Science and Information Technology, Northeast Normal University, Changchun 130117, China
  • Received:2013-01-04 Online:2013-03-23 Published:2013-06-05

摘要:

针对使用强类型DataSet批量数据导入效率低下的问题, 提出了一种优化算法。在兼顾强类型DataSet节省开发时间特性的同时, 在分析强类型DataSet内部方法的工作原理基础上, 对数据库连接的状态加以控制, 使对离线数据集中的所有数据操作处于一个连接中, 从而避免了数据库连接的频繁开关操作。 实验结果表明, 数据的提取所耗费的时间远小于数据导入所用时间, 有效提高了批量数据导入效率。

关键词: 数据集, 批量数据, 数据库链接

Abstract:

In order to solve the low inefficient problem in importing bulk data by typed DataSet, we present an optimization algorithm. Giving consideration to the quality of saving time, by analysising the working principle of the function inside the class of DataSet, we control the connection of the database, making every operation in disconnected dataset between only one database connection, avoiding frequently database operation of connections open close. Experimental results show that the time for data extraction is much less than the time for data import, and prove that the algorithm can effectively improve the efficiency of bulk data import.

Key words: DataSet, bulk data, database connection

中图分类号: 

  • TP301.6