摘要:
A system and method for implementing database cursors at the server in a client/server environment is disclosed. In operation, the system and method for implementing the database cursors is compatible with existing client/server database search engines but provides for increased control over cursor lock options, an ability to share cursors and search plans across multiple nodes in a network, and an increase in the overall operating efficiency of a database application. The invention is directed to cursors for all types of collections or compilations of data in a client/server database environment.
摘要:
A query processor's capabilities may be employed to identify a range rows resulting from a user query to be returned. A server cursor may be declared, opened, fetched from and closed in a single batched request in order to avoid keeping state on a database server between requests. A single block fetch may be used within the batch to retrieve a requisite number of rows from a specified ordinal position. Where server cursors are not available, an intermediate table may be used to hold a subset of the rows resulting from the user query, and row numbers may be added to facilitate selecting the range of rows from that intermediate table. Intelligence within a query processor may be leveraged to support identifying the range of rows to be returned without maintaining state between client requests.