In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to optimize the performance of DedeCms V5.5, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
How is the performance of DedeCms V5.5 optimized?
After the release of dedecms V5.5, compared with the previous version, all aspects are more perfect, but because of versatility, it is impossible to meet the needs of all users at the same time. In the past, many people expressed doubts about the performance of DedeCms, so here is an article on how to optimize performance and provide the final optimization results.
Recommended study: dream weaving cms
1. Modify system parameters
In DedeCms V5.5, the main parameters involved in generating HTML performance are the following:
1. Core settings:
Keyword substitution (Yes / No) use of this feature will affect the speed of HTML generation (cfg_keyword_replace)
This parameter is enabled by default. It is recommended that users who collect articles do not enable this option, because the collected articles must involve the problem of automatically generating keywords, so many keywords are meaningless and may even cause generation interruptions due to garbled codes. Therefore, it is recommended to disable this parameter.
2. Performance options:
Call cache update time (seconds, 0 means not enabled): 10000 cfg_index_cache
Whether template caching is enabled: yes cfg_tplcache
These two parameters are quite meaningful. In DedeCms, the tag that most affects performance is the arclist tag. In addition, whether template caching is turned on or not is also very important, and these two options deal with these issues.
It is recommended to modify the system parameters as shown in the following figure:
Second, optimize the database
1 、 dede_archives
This table has four groups of indexes: PRIMARY, sortrank, mainindex and lastpost. In fact, because the table itself is relatively small, it is not necessary to set too many indexes. Since programs in dedecms are sorted by sortrank field by default, it is recommended to keep PRIMARY and sortrank indexes and delete mainindex and lastpost. The specific operation is as follows:
2 、 dede_arctiny
This table is quite small, in the test, 70,000 data, this table accounts for only about 1.5m, in fact, it is already quite small, so there is no need to build an index, so delete the following index:
After the above optimization, the educational articles with about 70,000 data (about 800m database) are tested in Pentium E, 2G memory and ordinary SATA hard disk environment, and the generation speed is as follows:
Because the speed of DedeCms generation mechanism is about the same before and after, so the speed is stable at about 15 articles per second. Of course, this number has something to do with the number of user template tag calls, but at this speed, it can reach more than 50, 000 articles per hour, which is quite ideal.
Perhaps many webmasters will ask, why not test millions, tens of millions of levels of data?
In fact, according to this amount of data, if it reaches one million, the database will reach 10 gigabytes, and the 10 million-level ones will go up to 100 gigabytes. As some CMS blows have already passed the 10 million-level tests, let them blow. 100G data, plus pictures, what is the concept of the generated HTML? what can these ordinary hard drives and Pentium E machines do? Therefore, the data test with level 100000 is more representative. For people who really do regular stations, and they have really done a lot in the future, there should be no problem in upgrading the hardware. In addition, it is certainly impossible for those users under the virtual host to achieve this speed, but this can be used as a reference basis for performance optimization.
The above is all about how the performance of DedeCms V5.5 is optimized. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.