In the mall system developed using the fastapp framework, the front-end does not use the template engine, and some pendants are used. as a result, page loading is too slow when too much data is obtained from the database. how can we optimize it ?? This is the mall address. my webpage is loading slowly at www.lber.com.cn... in the mall system developed using the fastapp framework, the front-end does not use the template engine, and some pendants are used. as a result, page loading is too slow when too much data is obtained from the database. how can we optimize it ??
Mall address is this, http://www.lber.com.cn
The slow page loading is my order page.
Reply content:
In the mall system developed using the fastapp framework, the front-end does not use the template engine, and some pendants are used. as a result, page loading is too slow when too much data is obtained from the database. how can we optimize it ??
Mall address is this, http://www.lber.com.cn
The slow page loading is my order page.
Loading too much data at a time will inevitably slow down. The template engine is not used and the rendered template will not be cached. rendering will be performed once every request, and it will certainly be slow.
We recommend that you use the template engine to enable the engine cache.
Do not obtain too much data from the database at a time, and use several asynchronous pulling data from the background to reduce the pressure on the first loading. data that is not changed frequently must also be cached.