我有一份字典,为现场搜索目的优化了我的片面表的最新版本。
The table that is used in the site search is called tblSearch
the cronjob creates a new table wrkSearch and when it has finished to populate the table ends
dropping tblSearch and renaming wrkSearch
(both tables have MySam Engine)
DROP TABLE IF EXISTS `tblSearch
RENAME TABLE `wrkSearch` TO tblSearch
This is working fine, but I d like to know if is a good approach to the problem.
I would like to know if your considerations change based on table size... for example: "the solution could be dangerous for very big tables cause..."
我知道,我方言表内正在变化的每一个问题都是在档案系统中撰写文章......但是,在进行国家信息调查而不是UPD/INSERT之间是否存在某种差别? 我想要理解的是,RENAME的指挥系统是否多于aggresive。
表格中的另一个内容是,将电信数据库复制为MASTER-SLAVE结构......因此,我也想知道这是否最终会削弱RENAME查询的风险。
对我来说很重要的另一个方面是所使用的系统资源数量......RENAME的运行是否比UPDATE/INSERT更令人满意?