Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for connecting dynamic management database

A dynamic management and database technology, applied in database-related fields, can solve problems such as the inability of the database to dynamically adjust parameters

Active Publication Date: 2015-09-16
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] Based on this, it is necessary to provide a method and system for dynamically managing database connections in view of the technical problem that parameters cannot be dynamically adjusted once the existing database is created

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for connecting dynamic management database
  • Method and system for connecting dynamic management database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

[0026] Such as figure 1 Shown is a working flow diagram of a method for dynamically managing database connections in the present invention, including:

[0027] Step S101, comprising: obtaining at least one set of database connection parameters, and associating each set of connection parameters with a unique instance identifier provided by the object management container;

[0028] Step S102 includes: calling the initialization code for each set of connection parameters to initialize to obtain a database connection object, adding the database connection object to the object management container, and associating the instance identifier associated with the connection parameter;

[0029] Step S103 includes: obtaining a database connection object from the object management container as the current database connection object, and using the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a system for connecting a dynamic management database. The method comprises the following steps of acquiring at least one group of connection parameters of database, and relating each group of connection parameters to an only case identifier provided by an object management container; calling an initial code for each group of connection parameters to initialize to obtain a database connection object; adding the database connection object into the object management container, and relating the case identifier related to the connection parameters; acquiring a database connection object from the object management container to serve as a current database connection object, and using the current database connection object to connect the database. Due to the fact that the object management container is adopted to manage the database connection object, uniform database connection function management is realized.

Description

technical field [0001] The invention relates to the technical field related to databases, in particular to a method and system for dynamically managing database connections. Background technique [0002] At present, the Nosql database based on big data technology has become the first choice for the service platform to store data due to its excellent access performance and concurrency capabilities. [0003] Nosql database technology mainly includes Hbase distributed database, Hive, MongoDB, Cassandra, ElasticSearch (full-text search database hereinafter referred to as ES), etc. [0004] As an open source technology for connection management, DBCP is a JDBC connection pool with extremely high performance), Commons-pool is an Apache open source object pool), Spring is Java life cycle management, and each object is uniquely implemented through beanId logo. [0005] For traditional databases, third-party frameworks such as Spring provide a good connection pool method to facilit...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/21
Inventor 高廉墀冯玉敏刘彦伟
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD