diff --git a/src/gausskernel/dbmind/tools/common/types/misc.py b/src/gausskernel/dbmind/tools/common/types/misc.py index fa7767d27..05060be83 100644 --- a/src/gausskernel/dbmind/tools/common/types/misc.py +++ b/src/gausskernel/dbmind/tools/common/types/misc.py @@ -12,7 +12,11 @@ # See the Mulan PSL v2 for more details. from .root_cause import RootCause - +#Define anSlowQuery class thatSlow query accepts user input commands and performs operations on the database +#method:Display the error content and suggestions, and retrieve suggestions provided by the system. If there are no suggestions, return “ no suggestions” +#note:The property decorator turns a method into a property call.(root_causes、suggestions) +#date:2022/8/4 +#contact:18365997821 class SlowQuery: def __init__(self, db_host, db_port, db_name, schema_name, query, start_timestamp, duration_time, hit_rate=None, fetch_rate=None, cpu_time=None, data_io_time=None, template_id=None, sort_count=None,