| To read the article online, visit http://www.4GuysFromRolla.com/webtech/faq/Databases/faq7.shtml |
|
In the grand scheme of things, database actions are slow- very slow. Your ASP application could run at much faster speeds if it didn't need to interact with a database. The performance hit associated with using databases, though, is well worth it due to the number of benefits one receives from tying in a database to a web application.
So, since we are already taking a hit when connecting to and querying a database, we want to
make sure that we are taking the smallest possible performance hit. There are a number of
factors that can affect database performance:
So, let's start from the top and work our way down!
Maximizing Performance when Connecting to a Database:
What type of recordset cursor/locktype:
How often you reference the database variables: you'll see a performance boost if you store the database result in a local variable, and then using that variable to display the name in various places on the page: There is a great article describing this topic in further detail. By striving to maximize your database connection and querying performance, your web application will glide along that much faster. No need to take a performance hit when you don't need to... Happy Programming!
|
| Article Information | |
| Article Title: | Database Performance |
| Article Author: | Scott Mitchell |
| Article URL: | http://www.4GuysFromRolla.com/webtech/faq/Databases/faq7.shtml |
Copyright 2010 QuinStreet Inc. All Rights Reserved.
Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers