On Tuesday, February 13, 2018 at 4:43:11 PM UTC-5, Ramos wrote: > > but the idea is to get some of the data as it is being calculated in the > controller. >
One option would be to use the web2py scheduler to run the calculations as a background task. As results are generated, they could temporarily be stored in a special database table. From the browser, you can then make periodic Ajax requests (perhaps every few seconds) to check for new results in the special table. As an alternative to the Ajax polling, you could use server push (e.g., Websockets or Server Sent Events) to push results to the browser. If you want to take that approach, consider external pubsub servers such as Nchan <https://github.com/slact/nchan> or Centrifugo <https://github.com/centrifugal/centrifugo>, or realtime services such as Realtime.co, Ably, Pusher, Pubnub, or Firebase. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.