<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

织梦DEDECMS大数据量时DEDECMS的优化

时间:2020-12-14

织梦DEDECMS大数据量时DEDECMS的优化
 
1.去掉不需要的功能,特别是模板里面不需要的标签尽量去掉
 
2.最重要一点,在dede_art里面为字段增加索引。特别是click字段,增加索引后热门文章的生成速度从原来的1.6秒以上下降到0.0006秒(phpmyadmin)
 
在后台执行
 
Alter TABLE `dede_art` CHANGE `msg` `msg` VARCHAR( 250 ) NOT NULL;
 
Alter TABLE `dede_art` CHANGE `picname` `picname` VARCHAR( 100 ) NOT NULL;
 
Alter TABLE `dede_art` ADD INDEX ( `typeid` , `click` ) ;
 
Alter TABLE `dede_art` ADD INDEX ( `isdd` , `redtitle` , `ismake` , `rank` , `title` , `writer` , `source` , `stime` , `userid` , `spec` , `dtime` , `memberID` ) ;
 
Alter TABLE `dede_art` ADD INDEX ( `msg` , `likeid` ) ;
0
首页
案例
关于
联系