Home  >  Article  >  Backend Development  >  Dedecms V3.1 Optimization method for generating HTML speed_PHP tutorial

Dedecms V3.1 Optimization method for generating HTML speed_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:56:13709browse

Due to various reasons such as version compatibility, the index of dedecms is actually a bit confusing. If the index is set appropriately, the speed of dedecms HTML generation will be affected mainly when obtaining a list of articles that are not sorted by default. Due to the need to reorder the data, When the volume is large, the speed will be very unsatisfactory. You can easily optimize it through the following steps:

1. Enter phpmyadmin and delete the indexes of the dedecms site dede_archives except the index of the ID primary key;

2 , use SQL to create the following index:
Alter TABLE `dede_archives` ADD INDEX `click` (`click`);
Alter TABLE `dede_archives` ADD INDEX `typeid` (`typeid`);
Alter TABLE `dede_archives` ADD INDEX `arcrank` (`arcrank`);
Alter TABLE `dede_archives` ADD INDEX `sortrank` (`sortrank`);
Alter TABLE `dede_archives` ADD INDEX `senddate` (`senddate` );
Alter TABLE `dede_archives` ADD INDEX `pubdate` (`pubdate`);
Alter TABLE `dede_archives` ADD INDEX `litpic` (`litpic`);
Alter TABLE `dede_archives` ADD INDEX `typeid2` (`typeid2`);

In the range of data volume of about 1W-10W, after such optimization, if the content page does not have relevant article tags, the generation speed will be three to five times faster
If there are relevant article tags, it will be two to three times faster

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318137.htmlTechArticleDue to various reasons such as version compatibility, the index of dedecms is actually a bit confusing. If the index is set appropriately, What affects the speed of dedecmsHTML generation is mainly the failure to press the default button...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn