TheInsider
Programmer
Hello,
I am looking for some advice on recordset paging. I have read several examples from books, tutorials, and FAQs, but I am still unclear as to which is the best cursor/recordset type for my application.
Let's say that I have a query that is based on the parameters supplied by the client, who is doing some sort of search on my website. Now lets say the client's search returns 2000 records. I decide that I want each page to display 50 records at a time, so the client will have 40 pages available to look through.
Now suppose the client decides that, after looking through 3 pages of records, they don't want to look through any more. Is it not efficient that a client-side cursor location will return all of the 2000 records to the client anyway? The client would have to wait for 2000 records to be downloaded regardless of whether they will look through all pages or not.
Is there a way, other than using the SQL Server Stored Procedure method, to return only the records of the current page to the client?
If a website is expected to have a high volume of users, what is the most efficient way to solve this problem? Is there no better way to use ADO's built-in paging methods than with a client-side cursor and a Static or Keyset cursor? Are the high volume sites really all using custom paging methods?
Thanks, Rob Marriott
I am looking for some advice on recordset paging. I have read several examples from books, tutorials, and FAQs, but I am still unclear as to which is the best cursor/recordset type for my application.
Let's say that I have a query that is based on the parameters supplied by the client, who is doing some sort of search on my website. Now lets say the client's search returns 2000 records. I decide that I want each page to display 50 records at a time, so the client will have 40 pages available to look through.
Now suppose the client decides that, after looking through 3 pages of records, they don't want to look through any more. Is it not efficient that a client-side cursor location will return all of the 2000 records to the client anyway? The client would have to wait for 2000 records to be downloaded regardless of whether they will look through all pages or not.
Is there a way, other than using the SQL Server Stored Procedure method, to return only the records of the current page to the client?
If a website is expected to have a high volume of users, what is the most efficient way to solve this problem? Is there no better way to use ADO's built-in paging methods than with a client-side cursor and a Static or Keyset cursor? Are the high volume sites really all using custom paging methods?
Thanks, Rob Marriott