Guys, why it's not cleaning up itself?
bpmn_process table is huge
Collapse
X
-
If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks. -
https://docs.espocrm.com/administrat...nded-processes
It's been covered couple of times on the forum.Comment
-
yuri, please help, how can I remove all flowchart processes after 30 days?
If I setup "deleted = 1;" it will delete immediately, if I add a timer..I feel that's wrong, what's the best way? Maybe some config variable that can be setup?
Sorry, thanksComment
-
-
Optimizations for MySQL / MariaDB:
Just looking at my host provider and notice that I have a database filesize limit... looking at my database these two table is huge... not sure if it safe to delete or how I can trim down the size a little. Email is a must to keep there, but the other two I think we can safety delete? Anyone can advise? I probably do a backup
Usefule Scripts (DB), based on Linux-VM and MariaDB:
Code:SELECT table_name AS "Table", ROUND(((data_length + index_length) / 1024 / 1024), 2) AS "Size in (MB)" FROM information_schema.TABLES WHERE table_schema = "crm" ORDER BY (data_length + index_length) DESC limit 10;
where "table_schema" = Name of the DB.
Personally I use the following for tables not cleaning themself:
Code:delete from bpmn_flow_node where created_at < now() - interval 30 DAY; delete from bpmn_process where created_at < now() - interval 30 DAY; delete from scheduled_job_log_record where created_at < now() - interval 30 DAY; delete from job where created_at < now() - interval 30 DAY;
Code:php /var/www/crm/rebuild.php
Code:mysqlcheck -u root -p --optimize crm
Sources:Comment
Comment