看你这存储I/O根本没用多少?
Tiflash就是个组件,用tiup单独再部署一个(编辑个单独的yaml文件);部署完将这几张用到的表拷贝过去(在tiflash中建个副本);最后用相同的sql再跑一次,不需要改sql
嗯,目前在尝试测试环境部署tiflash了,但遇到些问题,tiflash节点一直Down
你好。表结构如下:
CREATE TABLE xxx_order
(
order_id
bigint(20) NOT NULL AUTO_INCREMENT,
sign_img_name
varchar(255) NOT NULL DEFAULT ’
department_id
int(11) NOT NULL DEFAULT ‘0’,
tenant_id
bigint(20) NOT NULL DEFAULT ‘0’,
account_id
varchar(200) NOT NULL DEFAULT ‘0’,
create_user_id
bigint(20) NOT NULL DEFAULT ‘0’,
audit_user_id
bigint(20) NOT NULL DEFAULT ‘0’,
create_time
int(11) NOT NULL DEFAULT ‘0’ COMMENT ‘创建时间’,
update_time
int(11) NOT NULL DEFAULT ‘0’ COMMENT ‘编辑时间’,
audit_time
int(11) NOT NULL DEFAULT ‘0’ COMMENT ‘审核时间’,
custom_id
bigint(20) NOT NULL DEFAULT ‘0’,
shop_id
bigint(20) NOT NULL DEFAULT ‘0’,
warehouse_id
bigint(20) NOT NULL DEFAULT ‘0’,
total_amount
decimal(20,2) NOT NULL DEFAULT ‘0.00’,
…………此处省略60来个字段
tdate
date NOT NULL DEFAULT ‘0000-00-00’,
trace_no
int(5) unsigned NOT NULL DEFAULT ‘0’,
is_rebate_order
tinyint(2) NOT NULL DEFAULT ‘0’,
sell_payed_bonus
decimal(20,2) NOT NULL DEFAULT ‘0.00’,
follow_payed_bonus
decimal(20,2) NOT NULL DEFAULT ‘0.00’,
tax_amount
decimal(20,2) NOT NULL DEFAULT ‘0.00’,
tax_rounding_method
tinyint(2) NOT NULL DEFAULT ‘0’,
tax_precision
tinyint(2) NOT NULL DEFAULT ‘0’,
buyer_car_number
varchar(64) NOT NULL DEFAULT ‘’,
PRIMARY KEY (order_id
),
UNIQUE KEY order_no
(order_no
),
KEY tenant_id
(tenant_id
,is_deleted
,state
),
KEY shop_id
(shop_id
),
KEY trace_no
(trace_no
),
KEY tdate
(tdate
),
KEY order_user_id
(order_user_id
),
KEY create_time
(create_time
),
KEY update_time
(update_time
),
KEY custom_id
(custom_id
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
完整执行计划已私信发给你了。