pt-archiver 删除记录

[root@masterdb-200 dbawork_bak]# pt-archiver --source h=192.168.151.198,P=3306,u=root,p='Z020',D=dbawork_bak,t=t2 --purge --charset=utf8mb4 --where "me_id<300000" --progress=200 --limit=200 --sleep=1 --txn-size=200 --statistics

TIME ELAPSED COUNT

2020-12-16T14:47:39 0 0

2020-12-16T14:47:39 0 200

2020-12-16T14:47:40 1 400

2020-12-16T14:47:42 2 600

…… …… ……

2020-12-16T14:56:23 523 99800

2020-12-16T14:56:24     524   99999
Started at 2020-12-16T14:47:39, ended at 2020-12-16T14:56:25
Source: A=utf8mb4,D=dbawork_bak,P=3306,h=192.168.151.198,p=...,t=t2,u=root
SELECT 99999
INSERT 0
DELETE 99999
Action        Count       Time        Pct
sleep           500   500.1657      95.15
deleting      99999    16.6744       3.17
commit          500     4.1736       0.79
select          501     1.1197       0.21
other             0     3.5291       0.67

 

posted @ 2020-12-16 15:06  da0h1  阅读(112)  评论(0编辑  收藏  举报