Hello,
Im running a two node cluster, using sqlite for logging.
My master node size is.. big.
whereas the second node is okay
I have set this sql procedure:
CREATE DEFINER=`root`@`%` PROCEDURE `dns`.`purge`()
BEGIN
DECLARE affected INT DEFAULT 1;
WHILE affected > 0 DO
DELETE FROM dns_logs
WHERE timestamp < DATE_SUB(NOW(), INTERVAL 90 DAY)
LIMIT 2000;
SET affected = ROW_COUNT();
DO SLEEP(0.05);
END WHILE;
END
unfortunately it doesnt seem to do much, on the final size?
dbeaver reports the table size to be 14gb, it was 20gb before any prunning (about of year of running?) so thats not possible. and on disk still 19gb. what am i missing?
thank you!
Hello,
Im running a two node cluster, using sqlite for logging.
My master node size is.. big.
whereas the second node is okay
I have set this sql procedure:
unfortunately it doesnt seem to do much, on the final size?
dbeaver reports the table size to be 14gb, it was 20gb before any prunning (about of year of running?) so thats not possible. and on disk still 19gb. what am i missing?
thank you!