How to detect the slow speed of an ASPX page

Source: Internet
Author: User

Recently read an article about how to improve the speed of an ASPX page. This is a common interview problem. The problem originates from this website.


There are a variety of reasons for this problem, and we need a step-by-step troubleshooting to locate where the problem really occurs.



1. Find out if the piece is slow, whether the Web site itself or the database is interacting slowly. If the page is performing interactions with the database, extract the SQL commands to run with the database console. If the execution of these statements on the database console is still slow, then the problem is that you are on top of the interaction with the database, and you need to consider optimizing the SQL statements.
A. Check to make an index to improve query speed
B. Using SELECT * will reduce efficiency
C. Use the Join keyword as little as possible

2. If the SQL statement executes quickly, then the problem is likely to be on the site itself. At this point we need to look at each page event to determine which one is performing slowly. In ASP. There is a tracing tool that we can use to see how long each event takes. Set trace= "true" in page directive, and you will be able to see the list of time parameters for each event at the bottom of the page.



How to detect the slow speed of an ASPX page

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.