System and method for asynchronous database command processing
First Claim
1. A computer implemented method for processing query statements by a database management system, the method comprising the steps of:
- accepting a connection request from an application program for connecting said application program to said database management system;
establishing an interprocess connection in response to said connection request, the connection having a unique connection identifier;
testing to determine whether an asynchronous or synchronous connection was requested;
activating the connection for either synchronous or asynchronous processing, based on the results of the testing step;
accepting a query statement for processing on the activated connection; and
when the connection has been activated for asynchronous processing,responding to periodic polling by the application program to the database management system using the unique connection identifier to indicate whether the dispatched query statement has completed processing;
returning reply data in response to the periodic polling if the dispatched query statement has completed processing; and
returning an incomplete processing indicator otherwise.
0 Assignments
0 Petitions
Accused Products
Abstract
A system and method for asynchronously processing SQL language statements in a database management system. A process assigns a unique database handle to each requested connection between an application program and a database, Each application can be concurrently connected to multiple databases. Databases are alternately activated for synchronous or asynchronous processing using the database handle. Following an asynchronous connection, SQL statements are dispatched for asynchronous processing. The application program dispatches an asynchronous statement, performs other processing and then periodically polls the database system to determine whether the statement has completed processing. SQL statement dispatch for synchronous processing performs like current synchronous SQL language systems by waiting for completion of SQL statement processing before continuing.
46 Citations
8 Claims
-
1. A computer implemented method for processing query statements by a database management system, the method comprising the steps of:
-
accepting a connection request from an application program for connecting said application program to said database management system; establishing an interprocess connection in response to said connection request, the connection having a unique connection identifier; testing to determine whether an asynchronous or synchronous connection was requested; activating the connection for either synchronous or asynchronous processing, based on the results of the testing step; accepting a query statement for processing on the activated connection; and
when the connection has been activated for asynchronous processing,responding to periodic polling by the application program to the database management system using the unique connection identifier to indicate whether the dispatched query statement has completed processing; returning reply data in response to the periodic polling if the dispatched query statement has completed processing; and returning an incomplete processing indicator otherwise. - View Dependent Claims (2, 6, 7, 8)
-
-
3. A database management system for processing query statements generated by an application program running on a computer system having memory and at least one processor said database management system running on a computer system having memory and at least one processor, the system comprising:
-
connection means in said database management system for accepting an application program interprocess connection request to a database and returning a unique connection identifier for the interprocess connection; means for testing said connection request to determine whether asynchronous or synchronous query processing is requested; means for activating the connection in an asynchronous mode if said test result indicates asynchronous processing is requested and activating the connection in synchronous mode otherwise; means for accepting a query statement processing request from said application program to said database management system; and means for responding to periodic polling from the application program seeking to determine whether the query statement has completed processing; means for returning data to said application program in response to said periodic polling if the query statement has completed processing; means for returning an incomplete processing indicator otherwise. - View Dependent Claims (5)
-
-
4. The system of claim 4, further comprising:
-
interprocess communication means for communicating between said application program and said database management means; control block means in said database management means for storing data associating said application program with said database in said database management system; and control block identification means for assigning a unique identifier to the control block means for uniquely identifying the connection.
-
Specification