Using the FASTAPP framework to develop the mall system, the front-end does not use a template engine, with a number of pendant bits, resulting from the database is too large to obtain data too much time, page loading is too slow, ask everyone how to optimize?
The mall address is this, http://www.lber.com.cn.
Page load Slow page is my order page.
Reply content:
Using the FASTAPP framework to develop the mall system, the front-end does not use a template engine, with a number of pendant bits, resulting from the database is too large to obtain data too much time, page loading is too slow, ask everyone how to optimize?
The mall address is this, http://www.lber.com.cn.
Page load Slow page is my order page.
Loading too much data at once will inevitably slow down. And without the template engine, the rendered template will not be cached, and each request will be rendered once, and will certainly be slow.
We recommend using the template engine to turn on the engine cache.
Do not fetch too much data from the database at once, and pull the data from the background with several async. Reduces pressure on first load. Data that is not constantly changing should also be cached.