Dedecms V3.1 The optimization method of generating HTML speed _php Tutorial

Source: Internet
Author: User
Due to version compatibility and other reasons, in fact, DEDECMS index is a bit confusing, if the index is set to fit, affect the dedecmshtml generation speed, mainly to get the list of articles not by default sorted by the time, due to reorder, the data volume is very high speed is not ideal, You can easily optimize by following these steps:

1, enter the phpMyAdmin, the DEDECMS site dede_archives except the ID primary key index of the index delete;

2. Create the following index with SQL:
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 around 1w-10w, after such optimization, if the content page does not have the relevant article tag, the generation speed will be three to five times times faster.
Two to three times times faster if there are related article markers

http://www.bkjia.com/PHPjc/318137.html www.bkjia.com true http://www.bkjia.com/PHPjc/318137.html techarticle due to version compatibility and other reasons, in fact, DEDECMS index is a bit confusing, if the index is set to fit, the impact of dedecmshtml generation speed, the main is to get no press by default ...

  • 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.