I think an additional advantage of the module approach is that the module 
only has to be loaded once (when it is first imported), but the model files 
have to be read on every request.

Anthony

On Thursday, March 8, 2012 10:04:11 AM UTC-5, Cliff wrote:
>
> Certainly we want to avoid processing unnecessary table definitions 
> with every request. 
>
> It seems to me that the simplest solution is something like this: 
>
> if request.controller=='foo': 
>   db.define_table('foo', Field...) # main table 
>   db.define_table('foo_one_to_many', Field(foo_id, db.foo...)...) 
>   ... 
>
> What is the advantage of the no models architecture over this?

Reply via email to