数据建议每天做一次备份,以防磁盘损坏导致数据丢失,造成损失,但是备份时数据量太大,所以需要做一些数据清理;
下面是关于小区系统的一些数据清理
transaction_log: 接口交互表
truncate table transaction_log;
transaction_log_message 接口交互表报文:
truncate table transaction_log_message;
transaction_out_log 调用外系统交互表
truncate table transaction_out_log;
log_system_error 系统错误记录表
truncate table log_system_error;
unitem_log;
truncate table unitem_log;
报表中间表根据基础数据,靠挺定时任务重新生成,可以清理
pay_fee_detail_month;
truncate table pay_fee_detail_month;
report_owe_fee;
truncate table report_owe_fee;
report_fee_year_collection:
truncate table report_fee_year_collection;
report_fee_year_collection_detail:
truncate table report_fee_year_collection_detail;
下面是关于物联网系统的一些数据清理
unitem_log;
truncate table unitem_log;