Hello everyone,
I am wondering what the best choice would be for an ASP page to run quickly and efficiently.
I'm not sure whether or not to use an array to store and loop through all the products for a certain group while building the page or to loop through each record in the database individually.
I see the two options, but am unsure which is more beneficial.
Option one is building the array (roughly 100+ records) before building the page and then looping through the array to populate the information on the page.
Option two is looping through the database to build the list of 100+ records without building an array.
Which option would be the best and most efficient method?
Thanks everyone!
I am wondering what the best choice would be for an ASP page to run quickly and efficiently.
I'm not sure whether or not to use an array to store and loop through all the products for a certain group while building the page or to loop through each record in the database individually.
I see the two options, but am unsure which is more beneficial.
Option one is building the array (roughly 100+ records) before building the page and then looping through the array to populate the information on the page.
Option two is looping through the database to build the list of 100+ records without building an array.
Which option would be the best and most efficient method?
Thanks everyone!
Comment