I have a table that has over 148,000 rows, I have managed to display this by doing:
<%response.Buffer=false%>
However, this is far from ideal as it needs to be done on the server and it takes so long. Is there a better way of doing this?
Many Thanks,
Joel
While I agree with the others that displaying 148.000 rows on one page is madness, I just wanted to point your attention to how you should output the data.
Since you didn’t specify any code, I’m assuming you’re simply looping through your recordset to display the records, like so:
This is a really inefficient way of working with data in classic ASP, since each time you’re reading a field (i.e. RS(“Name”)) you’re making a request to the database, and the same goes for each MoveNext and each EOF test. Instead you should use GetRows, to get all your elements from the recordset into an array, and then you can go ahead and close the connection to your database.
There’s a good article on how to work with GetRows here
Except from the article: