摘要 |
In an example embodiment, a method is illustrated as including defining a rule for executing a structured query language (SQL) statement, the rule including a resource threshold. A violation of the rule may be detected during an execution of the SQL statement. Further, SQL execution data is logged in a log table as a result of the rule being violated, the SQL execution data including a statistics collection recommendation. An estimated cost of gathering statistics indicated by the statistics collection recommendation is compared to an estimated resource savings and a data dictionary storing statistics on data objects associated with the SQL statement is updated as a function of the comparing.
|