检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]吉林大学计算机科学与技术学院,吉林长春130012
出 处:《吉林大学学报(信息科学版)》2004年第6期613-619,共7页Journal of Jilin University(Information Science Edition)
基 金:深圳三股份集有限公司科研基金资助项目(20021012)
摘 要:为解决在大型管理信息系统中存在的数据库连接影响系统性能的问题,运用连接池技术给出了一种有效的解决方案。在描述连接池的一般原理和当前的实现技术基础上,给出应用COM+(ComponentObjectModel+)的对象池机制和运用VC++提供的ATL(ActiveTemplateLibrary),建立了一个高效的连接池。通过连接池可以避免数据库连接对象频繁的创建和销毁带来的系统开销,有效地提高了系统性能,充分体现了多层结构的优点。实际测试结果表明,当活动连接超过200时,通过连接池可以很大程度上提高数据库的响应效率,尤其对于涉及多个连接的分布式事务,提交的准确性和效率都能提高1倍以上。连接池还可以通过限制活动连接的数量,避免因为连接数量过多而造成系统崩溃现象。To solve the problem that database connection generally influences the performance of large-scale management information system, an efficient solution by using connection pool technology was given, the general principle and implementation techniques of connection pool was given, the implementation of an efficient connection pool was given by using the object pool of COM+ and the ATL provided by(VC++ .) Connection pool can avoid the system spending brought by the frequently creating and destroying of database connection object and can improve the performance of whole system efficiently. Connection pool also presents the advantages of multiple tiers system. Practical test results show that connection pool can permanently improve the database's response efficiency when the number of active connection exceeds 200. By using connection pool, the validity and efficiency of distributed transactions that may contain some active connections can be improved more than two times. By limiting the number of active connections, system crashes owing to too many connections can be prevented.
关 键 词:连接池 对象池 激活 组件对象模型 活动连接 活动模板库
分 类 号:TP302[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.38