Summary table management in a computer system
First Claim
Patent Images
1. A method for managing a database, comprising:
- generating a plurality of statistics for each of a plurality of queries submitted to a database system;
storing one or more generated statistics for each of the plurality of queries;
generating a summary table creation recommendation based on one or more of the generated statistics for a query submitted to the database system; and
creating a summary table based on the summary table creation recommendation.
1 Assignment
0 Petitions
Accused Products
Abstract
A self monitoring system that identifies optimum summary table(s) for use by a database management system, and that automatically creates or deletes summary tables based on selected summary table recommendations.
62 Citations
20 Claims
-
1. A method for managing a database, comprising:
-
generating a plurality of statistics for each of a plurality of queries submitted to a database system;
storing one or more generated statistics for each of the plurality of queries;
generating a summary table creation recommendation based on one or more of the generated statistics for a query submitted to the database system; and
creating a summary table based on the summary table creation recommendation. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
generating a plurality of summary table creation recommendations, each based on one or more of the generated statistics for a query submitted to the database system;
ranking the plurality of summary table creation recommendations;
providing one or more of the plurality of summary table creation recommendations to a database administrator; and
creating a summary table based on the database administrator choosing a summary table creation recommendation.
-
-
6. The method of claim 5, in which ranking the plurality of summary table creation recommendations comprises ranking each of the plurality of summary table creation recommendations into one of four groups, the first group comprising the summary table creation recommendations that are responsive to those queries of the plurality of queries submitted to the database system that were executed by the database system relatively more frequently and that took a relatively longer amount of CPU time to execute, the second group comprising the summary table creation recommendations that are responsive to those queries of the plurality of queries submitted to the database system that were executed by the database system relatively more frequently and that took a relatively shorter amount of CPU time to execute, the third group comprising the summary table creation recommendations that are responsive to those queries of the plurality of queries submitted to the database system that were executed by the database system relatively less frequently and that took a relatively longer amount of CPU time to execute, and the fourth group comprising the summary table creation recommendations that are responsive to those queries of the plurality of queries submitted to the database system that were executed by the database system relatively less frequently and that took a relatively shorter amount of CPU time to execute.
-
7. The method of claim 5, in which providing one or more of the plurality of summary table creation recommendations to a database administrator comprises supplying to the database administrator a query that a summary table would be responsive to for each of the one or more plurality of summary table creation recommendations.
-
8. The method of claim 1, in which storing one or more generated statistics for each of the plurality of queries comprises storing one or more generated statistics for each query submitted by a user to the database system in a record in a user table on the user'"'"'s processing device and thereafter storing each record in the user table in a system table maintained by the database system.
-
9. The method of claim 8, in which a representation of an executable SQL query for a query submitted to the database system is stored in one or more respective records of the system table, and a generated statistic for the query submitted to the database system is the number of records in the system table that comprise the representation of the executable SQL query.
-
10. A method for managing summary tables in a database, comprising:
-
determining the frequency that a user query was processed by a database system;
generating a summary table creation recommendation based on the frequency that the user query was processed by the database system; and
generating a summary table deletion recommendation based on the frequency that a summary table is accessed by user queries processed by the database system. - View Dependent Claims (11, 12, 13, 14, 15)
presenting the summary table creation recommendation to a database administrator;
creating a summary table based on the summary table creation recommendation if the summary table creation is requested by the database administrator;
presenting the summary table deletion recommendation to the database administrator; and
deleting a summary table based on the summary table deletion recommendation if the summary table deletion is requested by the database administrator.
-
-
12. The method of claim 10, further comprising:
- determining the frequency that each of a plurality of user queries was processed by a database system;
generating a plurality of summary table creation recommendations, each summary table creation recommendation based on the frequency that a user query of the plurality of user queries was processed by the database system;
ranking the plurality of summary table creation recommendations based on the frequencies that the respective user queries were processed by the database system;
generating a plurality of summary table deletion recommendations each based on the frequency that a summary table is accessed by user queries processed by the database system; and
ranking the plurality of summary table deletion recommendations based on the frequency that the respective summary table is accessed by user queries processed by the database system.
- determining the frequency that each of a plurality of user queries was processed by a database system;
-
13. The method of claim 10, in which generating a summary table creation recommendation is further based on an average CPU execution time for responding to the user query.
-
14. The method of claim 10, in which generating a summary table creation recommendation is based on the frequency that the user query was processed by the database system within a specified timeframe, and in which generating a summary table deletion recommendation is based on the frequency that a summary table is accessed by user queries processed by the database system within the specified timeframe.
-
15. The method of claim 10, further comprising:
-
automatically creating a summary table based on the generated summary table creation recommendation; and
automatically deleting a summary table based on the summary table deletion recommendation.
-
-
16. A machine readable medium having stored thereon a program for causing a computer to:
-
gather a plurality of query statistics for each of a plurality of queries processed by a database system;
rank a plurality of queries processed by the database system based on one or more gathered query statistics for each of the plurality of queries ranked;
generate a summary table creation recommendation based on a ranked query; and
create a summary table based on the generated summary table creation recommendation. - View Dependent Claims (17, 18, 19, 20)
generate a plurality of summary table deletion recommendations each based on the frequency that a summary table is accessed by queries processed by a database system within a timeframe, and rank the plurality of summary table deletion recommendations.
-
Specification