Skip to content

Commit

Permalink
update init_sql
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo authored and 李环焕 committed Apr 13, 2018
1 parent dd2a9d8 commit 5e52607
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/script/mysql_slow_query_review.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ CREATE TABLE `mysql_slow_query_review_history` (
`client_max` varchar(64) DEFAULT NULL,
`user_max` varchar(64) NOT NULL,
`db_max` varchar(64) DEFAULT NULL,
`bytes_max` varchar(64) DEFAULT NULL,
`checksum` bigint(20) unsigned NOT NULL,
`sample` longtext NOT NULL,
`ts_min` datetime(6) NOT NULL,
Expand Down Expand Up @@ -110,6 +109,12 @@ CREATE TABLE `mysql_slow_query_review_history` (
`Filesort_sum` double DEFAULT NULL,
`Filesort_on_disk_cnt` double DEFAULT NULL,
`Filesort_on_disk_sum` double DEFAULT NULL,
`Bytes_sum` float DEFAULT NULL,
`Bytes_min` float DEFAULT NULL,
`Bytes_max` float DEFAULT NULL,
`Bytes_pct_95` float DEFAULT NULL,
`Bytes_stddev` float DEFAULT NULL,
`Bytes_median` float DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_hostname_max_ts_min` (`hostname_max`,`ts_min`),
KEY `idx_checksum` (`checksum`)
Expand Down

0 comments on commit 5e52607

Please sign in to comment.