another advantage is the fact that you can import modules, you cannot import models. it is very nice to import your tables on external scripts.
http://zerp.ly/rochacbruno Em 08/03/2012 12:11, "Anthony" <abasta...@gmail.com> escreveu: > 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? > >