How to optimize the HTML generation speed of DedecmsV3.1-PHP Tutorial

Source: Internet
Author: User
DedecmsV3.1: optimize the HTML generation speed. Due to version compatibility and other reasons, the index of dedecms is a bit messy. if the index is set appropriately, the generation speed of dedecmsHTML is affected, the main reason is that the index of dedecms is not updated by default due to version compatibility and other reasons. In fact, the index of dedecmsHTML is a bit messy. if the index is set appropriately, the generation speed of dedecmsHTML is affected, it is mainly used to obtain the list of articles not sorted by default. due to the need to re-sort the list, the speed of large data volumes is not ideal. you can perform the following steps to easily optimize the list:

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

2. use SQL to create the following indexes:
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 ');

When the data volume is about 1 w-10w, after such optimization, if the content page does not have the mark of the relevant article, the generation speed will be three to five times faster.
If there is a related article mark, it will be two to three times faster

...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.