Adjusting a resource estimate in response to progress of execution of a request
First Claim
Patent Images
1. A database system comprising:
- at least one processor;
an optimizer executable on the at least one processor to generate resource estimates regarding execution of a request in the database system; and
a regulator executable on the at least one processor to;
monitor progress of execution of the request to determine actual consumption of resources during the execution of the request;
compare the actual consumption of the resources during the execution of the request with the resource estimates;
adjust the resource estimates based on the comparing;
adjust a priority setting of the request according to the adjusted resource estimates;
receive cardinality estimates provided by the optimizer regarding a size of at least one table or a size of at least one spool for storing an intermediate result; and
adjust the resource estimates based on determining that the cardinality estimates are inaccurate.
1 Assignment
0 Petitions
Accused Products
Abstract
A database system includes an optimizer to generate resource estimates regarding execution of a request in the database system, and a regulator to monitor progress of execution of the request (and in some examples every step of the request), and to adjust the resource estimates based on the monitored progress. The regulator also adjusts a priority setting of the request according to the adjusted resource estimates.
81 Citations
14 Claims
-
1. A database system comprising:
-
at least one processor; an optimizer executable on the at least one processor to generate resource estimates regarding execution of a request in the database system; and a regulator executable on the at least one processor to; monitor progress of execution of the request to determine actual consumption of resources during the execution of the request; compare the actual consumption of the resources during the execution of the request with the resource estimates; adjust the resource estimates based on the comparing; adjust a priority setting of the request according to the adjusted resource estimates; receive cardinality estimates provided by the optimizer regarding a size of at least one table or a size of at least one spool for storing an intermediate result; and adjust the resource estimates based on determining that the cardinality estimates are inaccurate. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for use in a database system comprising:
-
receiving, from an optimizer, a resource estimate for a request; comparing, by a regulator executing on at least one processor in the database system, actual consumption of a resource during execution of the request with the resource estimate; in response to determining based on the comparing that the actual consumption of the resource is greater than or less than consumption indicated by the resource estimate, the regulator adjusting the resource estimate; adjusting a priority setting of the request according to the adjusted resource estimate; receiving cardinality estimates provided by the optimizer regarding a size of at least one table or a size of at least one spool for storing an intermediate result; and adjusting the resource estimate based on determining that the cardinality estimates are inaccurate. - View Dependent Claims (10, 11, 12)
-
-
13. An article comprising at least one non-transitory machine-readable storage medium storing instructions that upon execution cause at least one processor in a database system to:
-
receive, from an optimizer, a resource estimate for a request; compare, by a regulator, actual consumption of a resource during execution of the request with the resource estimate; in response to determining based on the comparing that the actual consumption of the resource is greater than or less than consumption indicated by the resource estimate, adjust, by the regulator, the resource estimate; adjust a priority setting of the request according to the adjusted resource estimate; receive cardinality estimates provided by the optimizer regarding a size of at least one table or a size of at least one spool for storing an intermediate result; and adjust the resource estimate based on determining that the cardinality estimates are inaccurate. - View Dependent Claims (14)
-
Specification