Re: [web2py] Re: is it allowed/possible to replace the database within a controler ?

2014-05-09 Thread Stef Mientki
thanks Anthony. On 09-05-14 22:22, Anthony wrote: Sure, it should be allowed, but nothing will be returned to the browser while you're waiting for the copy to happen. If the copy takes too long, the HTTP request may time out. Anthony On Friday, May 9, 2014 4:17:05 PM UTC-4, aapaap wrote:

[web2py] Re: is it allowed/possible to replace the database within a controler ?

2014-05-09 Thread Anthony
Sure, it should be allowed, but nothing will be returned to the browser while you're waiting for the copy to happen. If the copy takes too long, the HTTP request may time out. Anthony On Friday, May 9, 2014 4:17:05 PM UTC-4, aapaap wrote: > > thanks Anthony, > > Thought it was difficult to gen

[web2py] Re: is it allowed/possible to replace the database within a controler ?

2014-05-09 Thread Stef Mientki
thanks Anthony, Thought it was difficult to generate a scheduled task. But in PythonAnyWhere it'standard available. So I'll go that way. Still wondering if it's allowed to copy the default web2py database in a controler function ? cheers, Stef On 09-05-14 0:02, Anthony wrote: You probably

[web2py] Re: is it allowed/possible to replace the database within a controler ?

2014-05-08 Thread Anthony
You probably don't want a web request to potentially have to wait for a database copy over the network before returning a result. It would probably make more sense to set up a scheduled task to replicate the database once a day. Or better yet, look into the replication options offered by your RD