On Wed, Nov 18, 2009 at 12:28 AM, Koen Deforche <[email protected]> wrote: > Hey Hadass, > > 2009/11/18 HADASS YAARI <[email protected]>: >> I have some dynamic pages (that are built with a timer). >> There is a lot of data in the pages - very big tables. >> When the page is refreshing (in timeout) I start building the table and it >> takes a lot of time (~ half a second) and meanwhile the client is stuck. >> Is there a way to build the page in other way which won't be visible to the >> user? >> I thought maybe to do that with another thread that just will fill in the >> table - but is this the right way? can I change the table in a way that >> won't affect the page? > > I believe it is your only option if you want to do this outside the > event loop, which is the only way to avoid the delay. > > Note that you are free to modify any part of the widget hierarchy (or > models used by the widgets) outside the event loop as long as you > register your attach your thread to the application instance and grab > the application's update lock (in WApplication: attachThread() and > updateLock()). These modifications will be synchronized with the > browser on the next event, so you could for example chose to attach to > the WTimer a no-op call back routine.
Or instead of a WTimer, just keep the connection open so the server can push updates across if you will not have too many people on at the same time (60k or so?)? ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
