← Back to Patent Explorer
US6275818B1 Expired / Lapsed US ⏱️ 0.0 years remaining

Cost based optimization of decision support queries using transient views

Assignee: International Business Machines Corp
•
Filing: 1998-11-05
•
Granted: 2001-08-14
•
Expires: 2018-11-05
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract The present invention discloses a method, apparatus, and article of manufacture for optimizing one or more queries. Initially, redundancies in execution steps for the one or more queries are identified. Then, a new set of equivalent execution steps is created by eliminating redundancies in the execution steps. The new set of equivalent execution steps is used to execute the one or more queries when the use results in efficient query processing.

Inventors

  • 👤 Narayana Iyer Subramanian
  • 👤 Shivakumar Venkataraman

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-11-08 08:44
CPC Classifications
G; G06; G06F; G06F16/00; G06F16/20; G06F16/24; G06F16/245; G06F16/2453; G06F16/24534; G06F16/2454; Y; Y10; Y10S; Y10S707/00; Y10S707/99931; Y10S707/99932; Y10S707/99933

Claims Analysis

Total Claims: 31
Claim 1
Independent Claim 121 words
A method of modifying a query plan for improved performance, comprising: (a) identifying a plurality of sub-plans within the query plan; (b) generating one or more equivalence classes for the query plan, wherein each equivalence class contaims similar ones of the sub-plans; (c) generating a transient view to answer all of the sub-plans in an associated one of the equivalence classes, wherein the transient view contains a union of results from all of the sub-plans in the associated one of the equivalence classes; (d) utilizing a cost model to identify the transient views that improve the performance of the query plan; and (e) applying filters to the identified transient views to obtain results for each sub-plan in the associated equivalence class.
Claim 2
Independent Claim 121 words
A method of modifying a query plan for improved performance, comprising: (a) identifying a plurality of sub-plans within the query plan; (b) generating one or more equivalence classes for the query plan, wherein each equivalence class contaims similar ones of the sub-plans; (c) generating a transient view to answer all of the sub-plans in an associated one of the equivalence classes, wherein the transient view contains a union of results from all of the sub-plans in the associated one of the equivalence classes; (d) utilizing a cost model to identify the transient views that improve the performance of the query plan; and (e) applying filters to the identified transient views to obtain results for each sub-plan in the associated equivalence class.
Claim 3
Dependent Claim 15 words
The method of claim 1 , further comprising determining whether to materialize the transient view.
Claim 4
Dependent Claim 24 words
The method of claim 1 , wherein slimlar ones of the sub-plans contained in an equivalence class are identified by one or more properties.
Claim 5
Dependent Claim 55 words
The method of claim 3 , wherein the properties are selected from a property list comprised of one or more of the following: tables in the plan, columns selected, join predicates, selection predicates, aggregation functions, columns in a GROUP BY list, data sources, a cost of executing the plan, and a number of result rows.
Claim 6
Dependent Claim 39 words
The method of claim 4 , further comprising: generating a query that represents the transient view from the property list of the transient view; optimizing the query; and obtaining an execution plan, cost, and cardinality for the transient view.
Claim 7
Dependent Claim 20 words
The method of claim 1 , further comprising using the cost model to decide whether to materialize the transient view.
Claim 8
Dependent Claim 48 words
The method of claim 1 , wherein the sub-plans each have a scan type property, a table scanned property, a simple predicates property, and a columns selected property, further comprising the step of using one or more of these properties to determine which of the sub-plans are similar.
Claim 9
Dependent Claim 49 words
The method of claim 1 , wherein the sub-plans each have a join method property, a join predicates property, an outer plan property, and an inner plan property, and further comprising the step of using one or more of these properties to determine which of the sub-plans are similar.
Claim 10
Dependent Claim 32 words
The method of claim 1 , wherein the sub-plans each have an input plan property, and further comprising the step of using this property to determine which of the sub-plans are similar.
Claim 11
Independent Claim 148 words
An apparatus for optimizing one or more queries, comprising: (a) a computer having a data storage device connected thereto, wherein the data storage device stores a database; (b) one or more computer programs performed by the computer, for: (1) identifying a plurality of sub-plans within the query plan; (2) generating one or more equivalence classes for the query plan, wherein each equivalence class contains similar ones of the sub-plans; (3) generating a transient view to answer all of the sub-plans in an associated one of the equivalence classes, wherein the transient view contains a union of results from all of the sub-plans in the associated one of the equivalence classes; (4) utilizing a cost model to identify the transient views that improve the performance of the query plan; and (5) applying filters to the identified transient views to obtain results for each sub-plan in the associated equivalence class.
Claim 12
Independent Claim 148 words
An apparatus for optimizing one or more queries, comprising: (a) a computer having a data storage device connected thereto, wherein the data storage device stores a database; (b) one or more computer programs performed by the computer, for: (1) identifying a plurality of sub-plans within the query plan; (2) generating one or more equivalence classes for the query plan, wherein each equivalence class contains similar ones of the sub-plans; (3) generating a transient view to answer all of the sub-plans in an associated one of the equivalence classes, wherein the transient view contains a union of results from all of the sub-plans in the associated one of the equivalence classes; (4) utilizing a cost model to identify the transient views that improve the performance of the query plan; and (5) applying filters to the identified transient views to obtain results for each sub-plan in the associated equivalence class.
Claim 13
Dependent Claim 25 words
The apparatus of claim 10 , wherein the computer programs further comprise one or more computer programs for determning whether to materialize the transient view.
Claim 14
Dependent Claim 24 words
The apparatus of claim 10 , wherein similar ones of the sub-plans contained in an equivalence class are identified by one or more properties.
Claim 15
Dependent Claim 55 words
The apparatus of claim 12 , wherein the properties are selected from a property list comprised of one or more of the following: tables in the plan, columns selected, join predicates, selection predicates, aggregation functions, columns in a GROUP BY list, data sources, a cost of executing the plan, and a number of result rows.
Claim 16
Dependent Claim 49 words
The apparatus of claim 13 , wherein the computer programs further comprise one or more computer programs for: generating a query that represents the transient view from the property list of the transient view; optimizing the query; and obtaining an execution plan, cost, and cardinality for the transient view.
Claim 17
Dependent Claim 30 words
The apparatus of claim 10 , wherein the computer programs further comprise one or more computer programs for using the cost model to decide whether to materialize the transient view.
Claim 18
Dependent Claim 55 words
The apparatus of claim 10 , wherein the sub-plans each have a scan type property, a table scanned property, a simple predicates property, and a columns selected property, wherein the computer programs further comprise one or more computer programs for using one or more of these properties to determine which of the sub-plans are similar.
Claim 19
Independent Claim 56 words
The apparatus of claitn 10 , wherein the sub-plans each have a join method property, a join predicates property, an outer plan property, and an inner plan property, and wherein the computer programs further comprise one or more computer programs for using one or more of these properties to determine which of the sub-plans are similar.
Claim 20
Independent Claim 56 words
The apparatus of claitn 10 , wherein the sub-plans each have a join method property, a join predicates property, an outer plan property, and an inner plan property, and wherein the computer programs further comprise one or more computer programs for using one or more of these properties to determine which of the sub-plans are similar.
Claim 21
Dependent Claim 39 words
The apparatus of claim 10 , wherein the sub-plans each have an input plan property, and wherein the computer programs further comprise one or more computer programs for using this property to determine which of the sub-plans are similar.
Claim 22
Dependent Claim 149 words
An article of manufacture comprising a computer program carrier readable by a computer and embodying one or more instructions executable by the computer to perform method steps of optimizimg one or more queries, the method comprising the steps of: (a) identifying a plurality of sub-plans within the query; plan; (b) generating one or more equivalence classes for the query plan, wherein each equivalence class contains similar ones of the sub-plans; (c) generating a transient view to answer all of the sub-plans in an associated one of the equivalence classes, wherein the transient view contains a union of results from all of the sub-plans in the associated one of the equivalence classes; (d) utilizing a cost model to identify the transient views that improve the performance of the query plan; and (e) applying filters to the identified transient views to obtain results for each sub-plan in the associated equivalence class.
Claim 23
Dependent Claim 149 words
An article of manufacture comprising a computer program carrier readable by a computer and embodying one or more instructions executable by the computer to perform method steps of optimizimg one or more queries, the method comprising the steps of: (a) identifying a plurality of sub-plans within the query; plan; (b) generating one or more equivalence classes for the query plan, wherein each equivalence class contains similar ones of the sub-plans; (c) generating a transient view to answer all of the sub-plans in an associated one of the equivalence classes, wherein the transient view contains a union of results from all of the sub-plans in the associated one of the equivalence classes; (d) utilizing a cost model to identify the transient views that improve the performance of the query plan; and (e) applying filters to the identified transient views to obtain results for each sub-plan in the associated equivalence class.
Claim 24
Dependent Claim 17 words
The article of manufacture of claim 19 , further comprising determining whether to materialize the transient view.
Claim 25
Dependent Claim 26 words
The article of manufacture of claim 19 , wherein similar ones of the sub-plans contained in an equivalence class are identified by one or more properties.
Claim 26
Dependent Claim 57 words
The article of manufacture of claim 21 , wherein the properties are selected from a property list comprised of one or more of the following: tables in the plan, columns selected, join predicates, selection predicates, aggregation functions, columns in a GROUP BY list, data sources, a cost of executing the plan, and a number of result rows.
Claim 27
Dependent Claim 41 words
The article of manufacture of claim 22 , further comprising: generating a queryn that represents the transient view from the property list of the transient view; optimzing the query; and obtaining an execution plan, cost, and cardinality for the transient view.
Claim 28
Dependent Claim 22 words
The article of manufacture of claim 19 , further comprising using the cost model to decide whether to materialize the transient view.
Claim 29
Dependent Claim 50 words
The article of manufacture of claim 19 , wherein the sub-plans each have a scan type property, a table scanned property, a simple predicates property, and a columns selected property, further comprising the step of using one or more of these properties to determine which of the sub-plans are similar.
Claim 30
Dependent Claim 51 words
The article of manufacture of claim 19 , wherein the sub-plans each have a join method property, a join predicates property, an outer plan property, and an inner plan property, and further comprising the step of using one or more of these properties to determine which of the sub-plans are similar.
Claim 31
Dependent Claim 34 words
The article of manufacture of claim 19 , wherein the sub-plans each have an input plan property, and further comprising the step of using this property to determine which of the sub-plans are similar.

References Cited (Backward Citations)

US6061676A Cited
US5864847A Cited
US5819255A Cited
US5897632A Cited
US5864840A Cited
US6092062A Cited
US5943666A Cited

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 2004-08-13 2005-02-12 2005-08-14 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 2008-08-13 2009-02-12 2009-08-14 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 2012-08-13 2013-02-12 2013-08-14 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag