Archive of UserLand's first discussion group, started October 5, 1998.
How to do long processing in mR?
Author: David Gewirtz Posted: 9/29/1999; 8:52:49 PM Topic: How to do long processing in mR? Msg #: 11628 Prev/Next: 11627 / 11629
I need to run a long import (20 mins or so) as a result of a web page click. This is a long import process (think of it as similar to Analog crunching a log analysis). The problem is, I'm not sure how to accomplish the following goals:* Be sure that mainResponder can continue to handle other user sessions. I have sys.systemTask() scattered throughout the import loop, but it doesn't seem to be helping.
* Be able to tell the user who initiated (and any other authorized users who visit the initiating page) the status of the import (i.e., have the page update to say "processing record 92922...")
* Be able to be sure that users can't go to older pages (like the typical notice you get browsing that says "that page has expired".
* Ideally, I'd like the user to be able to go to a page, and when on that page, if the data changes, to have the page automatically refresh.
So how do I do all of this, and make it work and play well together with mainResponder?
Thanks!
This page was archived on 6/13/2001; 4:52:53 PM.
© Copyright 1998-2001 UserLand Software, Inc.