
平台应用重构之后,那么就必须考虑的一件事情特别重要的就是数据归档,针对历史数据如何处理,特别是我这个平台应用的历史数据已经突破天际,已经过千万,而且还有几张历史很重要的表数据已经超过亿级的量级,真的很考验能力!下面就开始我在做重构前提的种种准备工作记录:
select '详细说明' ,'统计条数(条)' from information_schema.tables where table_name = 'tbm_news_info' and table_schema = 'tbm' union all select 'tbm_news_info信息表总数(重点)' , table_rows from information_schema.tables where table_name = 'tbm_news_info' and table_schema = 'tbm' union all select 'tbm_news_tags主表标签表总数(重点)' , table_rows from information_