Distributed database connection method and device
A connection method and a technology of a connection device, applied in the database field, can solve the problems of reducing the service capability of the application program, the number of threads in the connection pool is too large, and the waste of application program system resources, etc., so as to avoid the problem that the connection cannot be reused and the number of threads is too large Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0056] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
[0057]The main solution of the embodiment of the present invention is: receiving the connection request of the application program, determining the database connection group to which the connection request belongs from the preset database groups; and querying whether there is an idle connection in the database connection group; if the If there is an idle connection in the database connection group, use the idle connection of the database connection group to create the connection of the application program; if there is no idle connection in the database connection group, then query the other database connection groups in the database instance to which it belongs Whether there are idle connections. Effectively avoid resource waste caused by unreusable connections between different databases of the same database instance...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


