Massimo and Mariano are developing a conditional model_map, so you will be
able to choose which model files to run for each requested controller, it
will be a very good add to web2py.

Maybe it will be included only in web2py 2.0.

I still think we need a model-less approach using modules, and it needs to
be documented, but appadmin was not designed to wotk with that, so it is
better to have it as a plugin (a new appadmin)

Even with the new model map I will still use the modules approach because
it has some advantages, it looks more like Python, it works well with my
code editor auto conplete and linter without hacks, and it is more reusable
in terms of Object Oriented programming. BTW I am not using appadmin for
database. I am replacing it with a simple plugin called badmin.

wait web2py 2.0 to see the new model mapping feature.

http://zerp.ly/rochacbruno
Em 27/02/2012 05:18, "Johann Spies" <[email protected]> escreveu:

> The thread in this mailing list with the subject "*model less apps (a
> blog example)"  *and some other remarks about using model-less
> applications for better speed and memory usage is the background of this
> email. I would be glad if the guidelines (not necessarily recipes) on
> this can become part of the official Web2py documentation.
>
> I am working on a long term app which currently have 93 tables in the
> database.  The database will develop into a multilevel database with many
> more tables and in the end probably several millions or records.
>
> I have started to migrate some of the less used tables to modules and it
> is working in the normal app, but I have problems with appadmin as I have
> described in the thread I refer to in the first paragraph.  Even in Bruno's
> blog example using appadmin produces tickets.
>
> This is because web2py was not originally designed for this type of setup.
>
> So my request is:
>
> If the way to go for large databases (many tables) is to move the table
> definitions to modules, please make it  part of the Web2py design, adapt
> appadmin to handle it and provide official documentation about it.
>
> Regards
> Johann
> --
> Because experiencing your loyal love is better than life itself,
> my lips will praise you.  (Psalm 63:3)
>
>

Reply via email to