7831593

Selective Automatic Refreshing of Stored Execution Plans

PublishedNovember 9, 2010
Assigneenot available in USPTO data we have
Technical Abstract

Patent Claims
16 claims

Legal claims defining the scope of protection, as filed with the USPTO.

1

1. A method of selectively recompiling stored execution plans within a database system, the execution plans including respective version numbers of database software operable within the database system during compilation of the respective plans, the method comprising: receiving a request to execute one of the stored execution plans; retrieving the stored execution plan from computer memory; obtaining a version number of database software operable within the database system during retrieval of the stored execution plan; comparing the obtained version number with the version number associated with the retrieved execution plan; and on detecting a mismatch between the obtained version number and the retrieved version number, recompiling the stored execution plan.

2

2. A method of selectively recompiling stored execution plans within a database system, the stored execution plans including respective cost parameters representing the hardware capabilities of the system at the time of plan compilation, the method comprising: receiving a request to execute one of the stored execution plans; retrieving the stored execution plan from computer memory; defining a set of cost parameters representing the cost of executing the stored execution plan within the database system; comparing the defined cost parameters with the stored cost parameters associated with the retrieved execution plan; and on detecting a significant difference between the defined cost parameters and the retrieved cost parameters, recompiling the stored execution plan.

3

3. The method of claim 2 wherein the significant difference includes a difference of 10% or greater.

4

4. The method of claim 2 wherein the cost parameters include the cost to read one block from disk within the database system.

5

5. The method of claim 2 wherein the cost parameters include the configured size of a resource within the database system.

6

6. A method of selectively recompiling stored execution plans within a database system, the execution plans including respective sub-optimal indicators, the method comprising: receiving a request to execute one of the stored execution plans; retrieving the stored execution plan from computer memory; checking the status of the sub-optimal indicator associated with the retrieved execution plan; and on detecting a positive value for the sub-optimal indicator, recompiling the stored execution plan.

7

7. A method of selecting one or more stored execution plans within a database system for recompilation, the stored execution plans referencing respective one or more tables defined within the database system, the method comprising: collecting statistics on one or more of the tables within the database system; retrieving successive stored execution plans from computer memory; and where a retrieved stored execution plan references at least one table on which statistics have been collected, setting the value of a marker in the header associated with the stored execution plan to indicate that the plan is sub-optimal.

8

8. A method of selecting one or more stored execution plans within a database system for recompilation, the stored execution plans referencing respective one or more tables defined within the database system, the method comprising: generating one or more indices on one or more of the tables within the database system; retrieving successive stored execution plans from computer memory; and where a retrieved stored execution plan references at least one table for which one or more indices have been generated, setting the value of a marker in the header associated with the stored execution plan to indicate that the plan is sub-optimal.

9

9. A system for selectively recompiling stored execution plans within a database system, the execution plans including respective version numbers of database software operable within the database system during compilation of the respective plans, where the system is configured to: receive a request to execute one of the stored execution plans; retrieve the stored execution plan from computer memory; obtain a version number of database software operable within the database system during retrieval of the stored execution plan; compare the obtained version number with the version number associated with the retrieved execution plan; and on detecting a mismatch between the obtained version number and the retrieved version number, recompile the stored execution plan.

10

10. A system for selectively recompiling stored execution plans within a database system, the execution plans including respective cost parameters representing the cost of executing the stored execution plan within the database system, where the system is configured to: receive a request to execute one of the stored execution plans; retrieve the stored execution plan from computer memory; defining a set of cost parameters representing the cost of executing the stored execution plan within the database system; compare the defined cost parameters with the stored cost parameters associated with the retrieved execution plan; and on detecting a significant difference between the defined cost parameters and the retrieved cost parameters, recompile the stored execution plan.

11

11. The system of claim 10 , where the significant difference includes a difference of 10% or greater.

12

12. The system of claim 10 wherein the cost parameters include the cost to read one block from disk within the database system.

13

13. The system of claim 10 wherein the cost parameters include the configured size of a resource within the database system.

14

14. A system for selectively recompiling stored execution plans within a database system, the execution plans including respective sub-optimal indicators, where the system is configured to: receive a request to execute one of the stored execution plans; retrieve the stored execution plan from computer memory; check the status of the sub-optimal indicator associated with the retrieved execution plan; and on detecting a positive value for the sub-optimal indicator, recompile the stored execution plan.

15

15. A system for selecting one or more stored execution plans within a database system for recompilation, the stored execution plans referencing respective one or more tables defined within the database system, where the system is configured to: collect statistics on one or more of the tables within the database system; retrieve successive stored execution plans from computer memory; and where a retrieved stored execution plan references at least one table on which statistics have been collected, set the value of a marker in the header associated with the stored execution plan to indicate that the plan is sub-optimal.

16

16. A system for selecting one or more stored execution plans within a database system for recompilation, the stored execution plans referencing respective one or more tables defined within the database system, where the system is configured to: generate one or more indices on one or more of the tables within the database system; retrieve successive stored execution plans from computer memory; and where a retrieved stored execution plan references at least one table for which one or more indices have been generated, set the value of a marker in the header associated with the stored execution plan to indicate that the plan is sub-optimal.

Patent Metadata

Filing Date

Unknown

Publication Date

November 9, 2010

Inventors

Louis Burger
Thomas Julien
Frank Roderic Vandervort

Want to explore more patents?

Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.

Citation & reuse

Analysis on this page is generated by Patentable — an AI-powered patent intelligence platform. AI-generated summaries, explanations, and analysis may be reused with attribution and a visible link back to the canonical URL below. Patent abstracts and claims are USPTO public domain.

Cite as: Patentable. “SELECTIVE AUTOMATIC REFRESHING OF STORED EXECUTION PLANS” (7831593). https://patentable.app/patents/7831593

© 2026 Patentable. All rights reserved.

Patentable is a research and drafting-assistant tool, not a law firm, and does not provide legal advice. Documents we generate are drafts for review by a licensed patent attorney.