You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
-- 慢查询日志表
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS sys_slow_query_log (
|
|
|
|
|
|
id BIGINT AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
|
|
method_name VARCHAR(200) NOT NULL COMMENT '方法名',
|
|
|
|
|
|
execution_time BIGINT NOT NULL COMMENT '执行时间(ms)',
|
|
|
|
|
|
threshold BIGINT NOT NULL COMMENT '阈值(ms)',
|
|
|
|
|
|
params TEXT COMMENT '请求参数',
|
|
|
|
|
|
create_time DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
|
|
|
|
INDEX idx_method_name (method_name),
|
|
|
|
|
|
INDEX idx_execution_time (execution_time),
|
|
|
|
|
|
INDEX idx_create_time (create_time)
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='慢查询日志表';
|