a
select concat('optimize table `',table, '`partition ',partition, ';')
from system.parts
where active = 1 and table like '....' and partition like '%201906%'
group by database,table,partition
order by database,table,partition
Size: a a a
a
select concat('optimize table `',table, '`partition ',partition, ';')
from system.parts
where active = 1 and table like '....' and partition like '%201906%'
group by database,table,partition
order by database,table,partition
AP
DC
DC
ЕБ
AP
DC
AP
A
A
AP
DC
A
A
IA
IA
IA
AP
A