[web2py] Re: response time impacted by compileapp

2013-06-12 Thread Niphlod
uhm. of course you have pyc files, but that's not what I meant. I meant hitting "compile" on the admin app. If you have an application/yourapp/compiled folder, then you have it compiled the way I meant. On Wednesday, June 12, 2013 7:32:30 PM UTC+2, Matt wrote: > > I thought I had precompiled my

[web2py] Re: response time impacted by compileapp

2013-06-12 Thread Matt
Anthony, it looks like I was mistaken, I just got one of our more simple models to work as a module. I'll repost later with what I discover wrt response times. Thanks, Matt On Wednesday, June 12, 2013 1:50:54 PM UTC-4, Anthony wrote: > > On Wednesday, June 12, 2013 1:35:11 PM UTC-4, Matt wrote

[web2py] Re: response time impacted by compileapp

2013-06-12 Thread Anthony
On Wednesday, June 12, 2013 1:35:11 PM UTC-4, Matt wrote: > Yes, I started going down this path but it seems almost impossible. We use > gluon.dal.Field in every model, as well as the T(..) function, and a number > of other gluon-related classes/functions. I thought I could just import all > of

[web2py] Re: response time impacted by compileapp

2013-06-12 Thread Matt
Yes, I started going down this path but it seems almost impossible. We use gluon.dal.Field in every model, as well as the T(..) function, and a number of other gluon-related classes/functions. I thought I could just import all of these and maintain all of our "models" as modules, but when I trie

[web2py] Re: response time impacted by compileapp

2013-06-12 Thread Matt
I thought I had precompiled my app, in this sense does "precompile" the app mean generating pyc's for all the relevant models? In that case, yes that was done. I haven't messed with conditional ones at all so far. It should also be mentioned that I experience the same response times when running

[web2py] Re: response time impacted by compileapp

2013-06-12 Thread Anthony
response.models_to_run can't go in a controller because the controller isn't called until after models have been run. If you don't know which models you will need until you get to the controller, you can put model definitions into modules and import and run them when needed. Anthony On Wednesd

[web2py] Re: response time impacted by compileapp

2013-06-12 Thread Niphlod
given that you can pre-compile your app, did you test if the compilation time drops before moving around your models to use conditional ones ? On Wednesday, June 12, 2013 3:47:47 PM UTC+2, Matt wrote: > > Hi, > We use web2py somewhat differently than most use cases in that we aren't > using a da