repartition sipstats.statistics

remotes/svn/2.7
Richard Fuchs 13 years ago
parent 276a1d715a
commit 86a5176d8f

@ -0,0 +1,3 @@
use sipstats;
alter table statistics remove partitioning;
alter table statistics partition by range (floor(timestamp)) (partition pmax values less than maxvalue);

@ -0,0 +1,6 @@
use sipstats;
alter table statistics remove partitioning;
set @stm = concat('alter table statistics partition by range (floor(timestamp)) (partition p_old values less than (', unix_timestamp() + 600, '))');
prepare st from @stm;
execute st;
deallocate prepare st;
Loading…
Cancel
Save