You can put if statements in the model file and so you define only
those you need depending on conditions (for example the requested
action). You should definitively set migrate=False and bytecode
compile you app, it will make it much faster.

If you still need more speed move the table definitions in a module
(not a model) and import it from the model. I would not recommend this
to everybody but 93 is a lot.

Massimo



On Sep 28, 8:25 pm, rb <[email protected]> wrote:
> It is my understanding that when a request comes in to web2py the
> first thing that is done is to execute all of the model files (in
> filename alphabetical order). Is there some way to pass in, via the
> request, a parameter that can be used to select which model code is
> run?
>
> If I have a total of 93 tables but need only 4 to 6 of them at a time,
> I would like to avoid the setup time for all 93 of the tables in the
> model files.
>
> ---
> Rb
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to