|
Home » ASP Home » Performance Home » Worlds Fastest Listbox w/Application Data
A D V E R T I S E M E N T
Title |
Worlds Fastest Listbox w/Application Data |
Description |
Sometimes data (like a HTML list box) is displayed on many pages of a website. In fact, the database generated list box is displayed thousands of times a day, and the database is queried every time, but it is unnecessary. The database it is drawn from is not changing thousands of times a day. In the following example any page that displays the list boxes needs to only access the application variables, not hit the database. Very speedy. If the data changes or gains new records, a trigger mechanism could be added to sense data changes and only rebuild the list box if records were added or changed. These scripts is a "proof of concept" script that displays the listboxes without re-querying the database. If you like this approach, this is merely a "proof of concept" and "teaching example". A much more thorough implementation of caching and high speed data retrieval is at: http://www.learnasp.com/learn/rsfast.asp which is a very fast database retrieval library I made and add features and speed tweaks too constantly that supports caching mechanisms too. ListMakedemo.asp is the main script. Simple enough. |
Category |
ASP » Performance |
Hits |
382019 |
Code |
Select and Copy the Code
|
|
|
Related Source Codes
A D V E R T I S E M E N T
|
Subscribe to SourceCodesWorld - Techies Talk |
New! Click here to Add your Code!
ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page | |
|