First page loading speed is slow, is there a way to optimize it?

Source: Internet
Author: User
The first page has 15 SQL statements involving 7 data tables, loading speed is very slow (about 6 seconds, 2Mb bandwidth), is there any way to optimize it?


Reply to discussion (solution)

Direct SQL Analysis of DESC SELECT * from TabName ... Key fields are indexed to optimize the program's wording.

It seems to be optimizing your SQL. Index, Cache

2MB 6sec does not speak very slowly, just slightly slower
You can cache the first page query results to minimize the impact of database queries
If the effect is not obvious, it means that your page layout is unreasonable, too many nested

A lot of suggestions to see the relevant books, you will know.
Http://www.ihuxu.com

Home cache, Dynamic Data, then use AJAX requests. Create the necessary indexes in addition

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