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.
21 lines
985 B
21 lines
985 B
create table mysql.server_cost
|
|
(
|
|
cost_name varchar(64) not null
|
|
primary key,
|
|
cost_value float null,
|
|
last_update timestamp default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP,
|
|
comment varchar(1024) null,
|
|
default_value float as ((case `cost_name`
|
|
when _utf8mb4'disk_temptable_create_cost' then 20.0
|
|
when _utf8mb4'disk_temptable_row_cost' then 0.5
|
|
when _utf8mb4'key_compare_cost' then 0.05
|
|
when _utf8mb4'memory_temptable_create_cost' then 1.0
|
|
when _utf8mb4'memory_temptable_row_cost' then 0.1
|
|
when _utf8mb4'row_evaluate_cost' then 0.1
|
|
else NULL end))
|
|
)
|
|
charset = utf8mb3
|
|
row_format = DYNAMIC
|
|
stats_persistent = 0;
|
|
|