Invention Grant
- Patent Title: Method and apparatus for controlling database connection
-
Application No.: US15281234Application Date: 2016-09-30
-
Publication No.: US10177970B2Publication Date: 2019-01-08
- Inventor: Tianyu Wang
- Applicant: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
- Applicant Address: CN Beijing
- Assignee: Beijing Baidu Netcom Science and Technology Co., Ltd.
- Current Assignee: Beijing Baidu Netcom Science and Technology Co., Ltd.
- Current Assignee Address: CN Beijing
- Agency: Miller, Matthias & Hull LLP
- Priority: CN201610312417 20160511
- Main IPC: G06F9/50
- IPC: G06F9/50 ; G06F21/00 ; H04L12/24 ; H04L12/26 ; H04L29/08 ; H04W40/00 ; H04L12/877 ; H04L12/911

Abstract:
The present application discloses a method and apparatus for controlling a database connection. A specific embodiment of the method comprises: receiving an access request for a database sent by a terminal; determining whether a database connection pool comprises an idle database connection for the database; reusing the idle database connection to connect the terminal with the database if the database connection pool comprises the idle database connection for the database; and establishing a new database connection, in order to connect the terminal with the database by utilizing the new database connection if the database connection pool comprises no idle database connections. This embodiment effectively utilizes fewer database connections to support database access requests.
Public/Granted literature
- US20170331674A1 Method and Apparatus for Controlling Database Connection Public/Granted day:2017-11-16
Information query