![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
Async Callbacks and long running queries
I am working on an asp.net web application made up of a lot of statistical tools. Most of these tools involve executing queries that take 20 - 30 seconds, some maybe more, to finish. I found this microsoft site that suggests async calls and a polling mechanism. This seems like the way to go. Im curious about what you guys think. Basically I would like to let the user know whats going on and not block the request thread, but I'm not sure if this is the best way to approach it. A couple hundred thousand rows can be returned at any given time, which seems to be a lot of data to be storing in the data store like that. Let me know how you handle situations like this or your opinions on async call backs.
|
|
|
|
|
|
#2 | |
|
Hobbyist Programmer
Join Date: Oct 2005
Posts: 211
Rep Power: 3
![]() |
Quote:
In an ASP environment using the controls in a threaded manner probablly isn't as crucial, because the majority of your work goes on in a single serverside thread, while the client has the polling mechanism to check on the status. If I was unclear and rambling my recommendation is yes to implement something such as that. If something takes much more than 10 or 15 seconds without an update your users will get antsy and hit refresh, or leave. A message will hopefully minimize that. -MBirchmeier |
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
That's clear, thanks. Also here is the website I was referring to if anyone is interested.
http://msdn.microsoft.com/library/de...nethowto08.asp Im interested in hear what more people think so keep them commin. Thanks |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|