Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1290
What's the best way to temporarily persist results of a long running SP?
posted

I realize this question isn't only about WebDataGrid, but it's related so, maybe it won't be considered offtopic.

I have a TSQL stored procedure that can run for a few minutes and return a few million records, I need to display that data in WebDataGrid. Obviously I don't want return all data at once and need to setup some kind of paging options - every time user selects another page - another portion of data is loaded from the DB. But I can't run the SP every time new page is requested - it would take too much time.

What would be the best way to persist data from the SP, so when user selects a new page - new data portion would be loaded by a simple SELECT... WHERE from that temp data storage?

Parents Reply Children
No Data