Invention Grant
- Patent Title: Intelligent open query cursor management
- Patent Title (中): 智能打开查询光标管理
-
Application No.: US11622532Application Date: 2007-01-12
-
Publication No.: US08768904B2Publication Date: 2014-07-01
- Inventor: Shawn Joseph Baranczyk , Paul Reuben Day , Brian Robert Muras
- Applicant: Shawn Joseph Baranczyk , Paul Reuben Day , Brian Robert Muras
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Matthew J. Bussan
- Main IPC: G06F7/00
- IPC: G06F7/00 ; G06F17/00 ; G06F17/30 ; G06F15/16

Abstract:
An enhanced mechanism for intelligently managing an open query cursor built from a query access plan (AP) by a query optimizer of a database management system (DBMS). In an embodiment, a cursor management system (CMS) detects whether an open query cursor was previously requested for use within another job. If the open query cursor was previously requested, the CMS intelligently manages the query cursor for subsequent use within a different job. For example, the open query cursor may be recycled for subsequent use within the different job. Hence, system resources are not wasted in building and destroying the same cursors for multiple jobs. Alternatively, the query cursor may be pre-built before the cursor is requested for subsequent use within the different job. The CMS may also obtain, release and re-obtain locks for cursors being managed. Alternatively, the job that uses the cursor may obtain the lock.
Public/Granted literature
- US20080172369A1 Method, Apparatus, and Computer Program Product for Intelligent Open Query Cursor Management Public/Granted day:2008-07-17
Information query