Claims
- 1. A method of processing precomputed views for answering user queries on a database, comprising:
in response to a user database query on precomputation strategy effectiveness, defining, based upon user database query history, an analysis space consisting of a subset of all possible views for the database, and characterizing the views in the analysis space.
- 2. The method of claim 1, wherein defining an analysis space comprises generating a log record for received user queries.
- 3. The method of claim 2, wherein generating a log record comprises parsing query blocks from user queries.
- 4. The method of claim 2, wherein generating a log record for a user query comprises determining whether the query was rewritten to use a precomputed view.
- 5. The method of claim 2, wherein generating a log record comprises determining whether rewritten user queries include aggregation.
- 6. The method of claim 2, wherein generating a log record comprises identifying a candidate view that could be used to rewrite user queries.
- 7. The method of claim 2, wherein the log record generated for a query comprises information about a precomputed view used to rewrite the query.
- 8. The method of claim 2, wherein the log record generated for a user query comprises information about a candidate view that could be used to rewrite the query.
- 9. The method of claim 1, wherein the analysis space is defined based upon capabilities of a query rewriting facility.
- 10. The method of claim 9, wherein the definition of the analysis space reflects whether or not user queries have been rewritten.
- 11. The method of claim 9, wherein the definition of the analysis space reflects whether or not rewritten user queries include aggregation.
- 12. The method of claim 9, wherein the query rewrite facility is configured to impose a structure on the analysis space.
- 13. The method of claim 12, wherein the imposed structure includes a graph representative of hierarchical relationships between views in the analysis space.
- 14. The method of claim 1, wherein the analysis space is defined based upon meta data.
- 15. The method of claim 14, wherein the analysis space is defined based upon hierarchical relationships among views.
- 16. The method of claim 1, wherein the defined analysis space includes precomputed views.
- 17. The method of claim 1, wherein the defined analysis space includes candidate views generated based upon user query history.
- 18. The method of claim 1, wherein characterizing the views in the analysis space comprises generating a measure of precomputed view utilization.
- 19. The method of claim 1, wherein characterizing the views in the analysis space comprises generating a measure of the benefit of a precomputed view relative to other views in the analysis space.
- 20. The method of claim 1, wherein characterizing the views in the analysis space comprises generating a report that reflects current precomputation strategy effectiveness.
- 21. The method of claim 1, wherein characterizing the views in the analysis space comprises generating a report that includes information about candidate views that could be created.
- 22. The method of claim 1, wherein characterizing the views in the analysis space comprises generating a measure of the benefit of a candidate view relative to other views in the analysis space.
- 23. The method of claim 1, wherein characterizing the views in the analysis space comprises applying a cost formula to the analysis space.
- 24. A method of processing precomputed views for answering user queries on a database, comprising:
imposing a structure on an analysis space consisting of a subset of all possible views for the database based upon the capabilities of a query rewriting facility; and characterizing the views in the analysis space.
- 25. The method of claim 24, wherein structure is imposed on the analysis space based upon meta data.
- 26. The method of claim 24, wherein structure is imposed on the analysis space based upon hierarchical relationships between views in the analysis space.
- 27. A method of processing precomputed views for answering user queries on a database, comprising:
defining an analysis space consisting of a subset of all possible views for the database; and applying a cost formula to the analysis space based upon a user-defined subset of the data contained in the database.
- 28. A method of processing precomputed views for answering user queries on a database, comprising:
defining an analysis space that includes a candidate view composed of a combination of two or more constituent views; and characterizing the views in the analysis space.
- 29. The method of claim 28, wherein at least one of the constituent views of the candidate view is a candidate view.
- 30. The method of claim 28, wherein at least one of the constituent views of the candidate view is a precomputed view.
- 31. The method of claim 28, wherein the defined analysis space includes the constituent views of the candidate view.
- 32. The method of claim 28, wherein the defined analysis space does not include the constituent views of the candidate view.
- 33. An apparatus for processing precomputed views for answering user queries on a database, comprising:
a query processor; and an advisor configured to respond to a user database query on precomputation strategy effectiveness by defining, based upon user database query history, an analysis space consisting of a subset of all possible views for the database and by characterizing the views in the analysis space.
- 34. The apparatus of claim 33, wherein defining an analysis space comprises generating a log record for received user queries.
- 35. The apparatus of claim 34, wherein generating a log record comprises parsing query blocks from user queries.
- 36. The apparatus of claim 34, wherein generating a log record for a user query comprises determining whether the query was rewritten to use a precomputed view.
- 37. The apparatus of claim 34, wherein generating a log record comprises determining whether rewritten user queries include aggregation.
- 38. The apparatus of claim 34, wherein generating a log record comprises identifying a candidate view that could be used to rewrite user queries.
- 39. The apparatus of claim 34, wherein the log record generated for a query comprises information about a precomputed view used to rewrite the query.
- 40. The apparatus of claim 34, wherein the log record generated for a user query comprises information about a candidate view that could be used to rewrite the query.
- 41. The apparatus of claim 33, wherein the analysis space is defined based upon capabilities of a query rewriting facility.
- 42. The apparatus of claim 41, wherein the definition of the analysis space reflects whether or not user queries have been rewritten.
- 43. The apparatus of claim 41, wherein the definition of the analysis space reflects whether or not rewritten user queries include aggregation.
- 44. The apparatus of claim 41, wherein the query rewrite facility is configured to impose a structure on the analysis space.
- 45. The apparatus of claim 44, wherein the imposed structure includes a graph representative of hierarchical relationships between views in the analysis space.
- 46. The apparatus of claim 33, wherein the analysis space is defined based upon meta data.
- 47. The apparatus of claim 46, wherein the analysis space is defined based upon hierarchical relationships among views.
- 48. The apparatus of claim 33, wherein the defined analysis space includes precomputed views.
- 49. The apparatus of claim 33, wherein the defined analysis space includes candidate views generated based upon user query history.
- 50. The apparatus of claim 33, wherein characterizing the views in the analysis space comprises generating a measure of precomputed view utilization.
- 51. The apparatus of claim 33, wherein characterizing the views in the analysis space comprises generating a measure of the benefit of a precomputed view relative to other views in the analysis space.
- 52. The apparatus of claim 33, wherein characterizing the views in the analysis space comprises generating a report that reflects current precomputation strategy effectiveness.
- 53. The apparatus of claim 33, wherein characterizing the views in the analysis space comprises generating a report that includes information about candidate views that could be created.
- 54. The apparatus of claim 33, wherein characterizing the views in the analysis space comprises generating a measure of the benefit of a candidate view relative to other views in the analysis space.
- 55. The apparatus of claim 33, wherein characterizing the views in the analysis space comprises applying a cost formula to the analysis space.
- 56. An apparatus for processing precomputed views for answering user queries on a database, comprising:
a query processor; and an advisor configured to impose a structure on an analysis space consisting of a subset of all possible views for the database based upon the capabilities of a query rewriting facility, and to characterize the views in the analysis space.
- 57. The apparatus of claim 56, wherein structure is imposed on the analysis space based upon meta data.
- 58. The apparatus of claim 56, wherein structure is imposed on the analysis space based upon hierarchical relationships between views in the analysis space.
- 59. An apparatus for processing precomputed views for answering user queries on a database, comprising:
a query processor; and an advisor configured to define an analysis space consisting of a subset of all possible views for the database, and to apply a cost formula to the analysis space based upon a user-defined subset of the data contained in the database.
- 60. An apparatus for processing precomputed views for answering user queries on a database, comprising:
a query processor; and an advisor configured to define an analysis space that includes a candidate view composed of a combination of two or more constituent views, and to characterize the views in the analysis space.
- 61. The apparatus of claim 60, wherein at least one of the constituent views of the candidate view is a candidate view.
- 62. The apparatus of claim 60, wherein at least one of the constituent views of the candidate view is a precomputed view.
- 63. The apparatus of claim 60, wherein the defined analysis space includes the constituent views of the candidate view.
- 64. The apparatus of claim 60, wherein the defined analysis space does not include the constituent views of the candidate view.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority from the following co-pending applications, each of which is incorporated herein by reference: U.S. Provisional Application No. 60,079,679, filed Mar. 27, 1998, and entitled “System and Method for Answering a Database Query By Utilizing an Advisor;” U.S. Provisional Application No. 60,079,670, filed Mar. 27, 1998, and entitled “System and Method for Answering a Database Query By Utilizing Generated Candidate Views;” U.S. Provisional Application No. 60,079,671, filed Mar. 27, 1998, and entitled “System and Method for Answering a Database Query By Utilizing an Integrated Server;” and U.S. application Ser. No. 09/049,784, filed Mar. 27, 1998, and entitled “System and Method for Rewriting Relational Database Queries.”
Provisional Applications (3)
|
Number |
Date |
Country |
|
60079679 |
Mar 1998 |
US |
|
60079670 |
Mar 1998 |
US |
|
60079671 |
Mar 1998 |
US |
Continuations (1)
|
Number |
Date |
Country |
Parent |
09049784 |
Mar 1998 |
US |
Child |
09277034 |
Mar 1999 |
US |