×

Adaptive query cursor management

  • US 9,846,599 B1
  • Filed: 10/31/2016
  • Issued: 12/19/2017
  • Est. Priority Date: 10/31/2016
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer-readable storage medium containing computer program code that, when executed by operation of one or more computer processors, performs an operation comprising:

  • collecting usage metrics for each of a plurality of database cursors, wherein the usage metrics further comprise a number of other database cursors that are associated with a job with which each respective database cursor is associated;

    calculating a cost of each respective database cursor based on the collected usage metrics, wherein the cost describes an estimated amount of time to rebuild the respective database cursor, if closed, relative to an average runtime of the respective database cursor, and wherein the cost is calculated further based on at least one of;

    (a) a size in memory of each respective database cursor, and (b) an amount of resources that are required when each respective database cursor is used;

    upon determining that a database cursor threshold has been exceeded, wherein the database cursor threshold defines the maximum number of database cursors that are permitted to be open at a time;

    selecting, based on the calculated costs, a database cursor of the plurality of database cursors; and

    closing the selected cursor.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×