The impact of ASP stored procedures on page access speed

Source: Internet
Author: User
Stored Procedure | access | speed | Page when there is a large number of reuse statements in the executed SQL statement, that is, the SQL statements executed by page A and page b
There is a large number of repetitive operations, there is an intersection, stored procedures can improve the speed of web browsing.
First, if so, in the preparation process, as far as possible to improve the process of particle size, that is, as far as possible to refine, do
To write some atomic processes, and then call them layers, build the application, like building blocks. Due to charge
Use the reusable code, which will improve the speed of Web Access.
If the SQL statement in the page is very verbose, when using the stored procedure, the transmission will only be called
In a word, instead of having to transfer a large section of SQL statements across the network, this can increase access speed;
The readability of the program, the error rate of the combination of SQL statements and variables will be reduced.
Third, if in the page, there is the transmission of binary data, the SQL statement is the first binary data conversion to
characters, which can be a waste of time, but only when the binary data is transferred.
Four, stored procedures in the server section of the compilation, reducing the burden on the browser, but at the same time aggravating the server's
Burden, this also needs attention.
In short, pros and cons, specific whether to do, but also weigh.



Related Article

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.